Fix paths with basePath and assetPrefix
All checks were successful
Deploy / trigger (push) Successful in 2s
All checks were successful
Deploy / trigger (push) Successful in 2s
This commit is contained in:
@@ -2,10 +2,14 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: 'export',
|
||||
trailingSlash: true,
|
||||
basePath: '',
|
||||
images: { unoptimized: true },
|
||||
trailingSlash: true,
|
||||
// OBBLIGATORIO: Questo dice a Next di cercare i font dentro /my-app/out/
|
||||
basePath: '/my-app/out',
|
||||
// Opzionale ma consigliato se basePath non bastasse per i file statici
|
||||
assetPrefix: '/my-app/out',
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user