mirror of
https://github.com/tiennm99/loldle.git
synced 2026-10-11 03:13:42 +00:00
Add svelte.config.js (adapter-static, BASE_PATH-driven base), vite.config.js (Tailwind v4 Vite plugin ahead of sveltekit), the src/ shell, and static/ holding a copy of champions.json plus .nojekyll. Declares "type": "module" so Vite can load the .js config files; Next.js was only unaffected because all its configs use .mjs. jsconfig keeps the @/* alias so pnpm next:build stays runnable for side-by-side comparison during the port. Next.js scripts move to next:* and both toolchains build from this commit.
16 lines
394 B
JavaScript
16 lines
394 B
JavaScript
import adapter from "@sveltejs/adapter-static";
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
kit: {
|
|
// No options: output goes to build/. No fallback either — every route is
|
|
// prerendered, so a fallback page would mask a real prerender failure.
|
|
adapter: adapter(),
|
|
paths: {
|
|
base: process.env.BASE_PATH || "",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|