Skip to content

Commit 0870f0b

Browse files
committed
Fix base path.
1 parent a690f8d commit 0870f0b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let currentLang: string = "en";
77
export async function loadLanguages(langs: string[], startLang: string) {
88
languages = langs;
99
for (const code of languages) {
10-
const response = await fetch(`/locales/${code}.json`, {
10+
const response = await fetch(`locales/${code}.json`, {
1111
cache: "no-cache",
1212
});
1313
strings[code] = await response.json();

vite.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export default {
22
build: { sourcemap: true },
3+
base: "",
34
};

0 commit comments

Comments
 (0)