config next js

This commit is contained in:
Rama Priyanto 2025-05-16 16:28:35 +07:00
parent 510490e47c
commit 118c0bea44
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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);