config next js
This commit is contained in:
parent
510490e47c
commit
118c0bea44
|
|
@ -78,7 +78,7 @@ WORKDIR /usr/src/app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
# Salin ckeditor5 ke dalam workdir
|
# Salin ckeditor5 ke dalam workdir
|
||||||
COPY vendor ./vendor
|
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
# Instal dependensi
|
# Instal dependensi
|
||||||
RUN npm install -g npm@latest
|
RUN npm install -g npm@latest
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,9 @@
|
||||||
// });
|
// });
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
|
|
||||||
|
const path = require("path");
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return [
|
||||||
|
|
@ -64,6 +67,13 @@ const nextConfig = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
webpack: (config) => {
|
||||||
|
config.resolve.alias["ckeditor5-custom-build"] = path.resolve(
|
||||||
|
__dirname,
|
||||||
|
"vendor/ckeditor5"
|
||||||
|
);
|
||||||
|
return config;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// module.exports = withPWA(nextConfig);
|
// module.exports = withPWA(nextConfig);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue