fix(Docker Image): output SSR site when in docker
This commit is contained in:
parent
2f0eeecb9e
commit
cdf2653993
4 changed files with 158 additions and 18 deletions
|
@ -2,17 +2,22 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
|
||||
import preact from "@astrojs/preact";
|
||||
|
||||
import tailwind from "@astrojs/tailwind";
|
||||
import node from '@astrojs/node';
|
||||
|
||||
import icon from "astro-icon";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: import.meta.env.DOCKER ? 'server' : 'static',
|
||||
output: process.env.DOCKER_BUILD ? 'server' : 'static',
|
||||
site: "https://aria.coffee",
|
||||
integrations: [preact(), tailwind(), icon()],
|
||||
|
||||
image: {
|
||||
domains: ["buymymojo.net", "aria.coffee", "github.com", "githubusercontent.com", "avatars.githubusercontent.com", "camo.githubusercontent.com", "user-images.githubusercontent.com", "private-user-images.githubusercontent.com"],
|
||||
},
|
||||
|
||||
adapter: node({
|
||||
mode: "standalone",
|
||||
}),
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue