Oh dear god, please fix this

This commit is contained in:
Korbs 2024-05-15 12:09:16 -04:00
parent bcb0a362da
commit f891e44dcc
2 changed files with 11 additions and 1 deletions

View file

@ -1,12 +1,22 @@
FROM node:lts AS runtime
WORKDIR /app
# Copy site to Docker image
COPY . .
# Install packages
RUN npm install
RUN npm run build
# Set website host and port
ENV HOST=0.0.0.0
ENV PORT=4321
# Disable Keystatic
ENV SKIP_KEYSTATIC=true
# Expose Port
EXPOSE 4321
# Run
CMD node ./dist/server/entry.mjs

View file

@ -15,7 +15,7 @@ export default defineConfig({
'/docs/': '/docs/minpluto/introduction/',
'/docs/minpluto': '/docs/minpluto/introduction/' // ?
},
integrations: [react(), markdoc(), keystatic(),
integrations: [react(), markdoc(), ...(process.env.SKIP_KEYSTATIC ? [] : [keystatic()]),
AutoImport({
imports: [
'./src/components/keystatic/Image.astro',