build(app): limit Next.js standalone output mode only for docker image

This commit is contained in:
WanQuanXie 2024-05-09 03:11:10 +08:00
parent 838b779f3d
commit 33fa8a1f65
2 changed files with 3 additions and 1 deletions

View file

@ -4,6 +4,9 @@ WORKDIR /home/perplexica
COPY ui /home/perplexica/
# Specific Next.js output for standalone
RUN echo "const nextConfig={output: 'standalone',images:{remotePatterns:[{hostname:'s2.googleusercontent.com'}]}};export default nextConfig;" > ./next.config.mjs
RUN yarn install
RUN yarn build

View file

@ -1,6 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
images: {
remotePatterns: [
{