mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-14 16:17:33 +00:00
fix: set basePath for GitHub Pages deployment
Assets and routes now correctly resolve under /loldle subdirectory.
This commit is contained in:
1 parent
f298ddddc2
commit
dc7603459f
2 files changed
+2
-1
No files matched your search
@@ -9,7 +9,7 @@ export async function loadChampions() {
|
||||
if (loadPromise) return loadPromise;
|
||||
|
||||
loadPromise = (async () => {
|
||||
const response = await fetch("/champions.json");
|
||||
const response = await fetch(`/loldle/champions.json`);
|
||||
if (!response.ok) {
|
||||
loadPromise = null;
|
||||
throw new Error(`Failed to load champions: ${response.status}`);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: "export",
|
||||
basePath: "/loldle",
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user