diff --git a/Dockerfile b/Dockerfile index f68a530..416bdf1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/next.config.js b/next.config.js index 50d8475..298b318 100644 --- a/next.config.js +++ b/next.config.js @@ -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);