mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-06-11 11:06:24 +00:00
Merge pull request #212 from MacRimi/develop
Hotfix: trailingSlash:true so GitHub Pages serves /en/ and /es/
This commit is contained in:
@@ -13,6 +13,18 @@ const withNextIntl = createNextIntlPlugin('./i18n/request.ts')
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
output: "export",
|
output: "export",
|
||||||
|
// GitHub Pages serves a directory URL `/foo/` by looking for
|
||||||
|
// `out/foo/index.html`. Next.js's default static export with
|
||||||
|
// `trailingSlash: false` emits `out/foo.html` instead, which Pages
|
||||||
|
// only serves for the bare URL `/foo` (no trailing slash). The
|
||||||
|
// i18n root redirect points users at `/<defaultLocale>/` (with
|
||||||
|
// slash) — so every visitor would land on a 404. Enabling
|
||||||
|
// trailingSlash makes Next.js emit `out/<route>/index.html` for
|
||||||
|
// every page, including `out/en/index.html` and `out/es/index.html`
|
||||||
|
// so the locale roots load correctly. Internal `<Link>` URLs from
|
||||||
|
// next-intl already include the trailing slash, so this aligns
|
||||||
|
// export, runtime navigation and Pages serving.
|
||||||
|
trailingSlash: true,
|
||||||
eslint: {
|
eslint: {
|
||||||
ignoreDuringBuilds: true,
|
ignoreDuringBuilds: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user