Added base path asset prefix
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
37a4e1b9dc
commit
aca06bd596
|
@ -25,6 +25,8 @@ steps:
|
|||
image: node:16
|
||||
depends_on:
|
||||
- install-deps
|
||||
environment:
|
||||
NEXT_PUBLIC_BASE_PATH: /
|
||||
commands:
|
||||
- npm run build
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH + "/",
|
||||
|
||||
reactStrictMode: true,
|
||||
trailingSlash: true,
|
||||
// This image loader supports `next export`, for optimizing next <Image /> tags
|
||||
|
@ -7,7 +10,6 @@ const nextConfig = {
|
|||
loader: 'akamai',
|
||||
path: '',
|
||||
},
|
||||
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
|
|
Loading…
Reference in New Issue