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 ./
|
||||
|
||||
# Salin ckeditor5 ke dalam workdir
|
||||
COPY vendor ./vendor
|
||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||
|
||||
# Instal dependensi
|
||||
RUN npm install -g npm@latest
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
// });
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
|
||||
const path = require("path");
|
||||
|
||||
const nextConfig = {
|
||||
async headers() {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue