All checks were successful
test-build / build (push) Successful in 27s
test-build / guarddog (push) Successful in 30s
release-image / guarddog (push) Successful in 22s
release-image / build (push) Successful in 46s
release-image / semantic-release (push) Successful in 24s
release-image / release-harbor (push) Successful in 1m50s
release-image / release-gitea (push) Successful in 2m5s
renovate / renovate (push) Successful in 45s
30 lines
478 B
JavaScript
30 lines
478 B
JavaScript
import { defineConfig } from "astro/config";
|
|
|
|
import node from "@astrojs/node";
|
|
import sitemap from '@astrojs/sitemap';
|
|
|
|
const getSiteURL = () => {
|
|
if (process.env.SITE_URL) {
|
|
return `https://${process.env.SITE_URL}`;
|
|
}
|
|
return "http://localhost:4321";
|
|
};
|
|
|
|
export default defineConfig({
|
|
site: getSiteURL(),
|
|
|
|
security: { csp: true },
|
|
|
|
prefetch: true,
|
|
|
|
integrations: [
|
|
sitemap(),
|
|
],
|
|
|
|
output: 'static',
|
|
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
});
|