Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Nov 5, 2023
1 parent 6eaca97 commit 58511a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export async function sendContent(archive: File): Promise<BundlerResponse> {
const bundle: JSZip = new JSZip();

const body: FormData = new FormData();
const endpoint = `${process.env.BASE_URL}/compile`;
const endpoint = `${import.meta.env.DEV ? process.env.BASE_URL : ""}/compile`;

/* add icons to form data */
for (const key in iconFiles) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/converters/MediaConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default abstract class MediaConverter {
protected url: string;

constructor(path: string) {
this.url = `${process.env.BASE_URL}${path}`;
this.url = `${import.meta.env.DEV ? process.env.BASE_URL : ""}${path}`;
}

abstract convert(files: MediaFile[]): Promise<MediaFile[]>;
Expand Down

0 comments on commit 58511a3

Please sign in to comment.