1
Fork 0
This repository has been archived on 2024-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
poke-on-astro-experiment/astro.config.mjs

39 lines
826 B
JavaScript
Raw Permalink Normal View History

2024-06-21 20:34:37 -05:00
import { defineConfig, envField } from 'astro/config';
2024-06-21 01:41:45 -05:00
import node from "@astrojs/node";
import partytown from "@astrojs/partytown";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import vue from "@astrojs/vue";
2024-06-21 04:17:09 -05:00
import astroI18next from "astro-i18next";
2024-06-21 01:41:45 -05:00
export default defineConfig({
2024-06-22 15:49:55 -05:00
// Project Structure
publicDir: './src/public/',
2024-06-21 20:34:37 -05:00
// Use Server-Side Rendering
2024-06-21 01:41:45 -05:00
output: "server",
adapter: node({
mode: "standalone"
}),
2024-06-21 20:34:37 -05:00
// Security
2024-06-21 01:41:45 -05:00
security: {
checkOrigin: true
},
2024-06-21 20:34:37 -05:00
// Server Options
2024-06-21 01:41:45 -05:00
server: {
port: 6003,
host: true
},
2024-06-21 20:34:37 -05:00
// Integrations and Plugins
2024-06-21 01:41:45 -05:00
integrations: [
2024-06-21 04:17:09 -05:00
astroI18next(),
2024-06-21 01:41:45 -05:00
partytown(),
sitemap(),
robotsTxt(),
2024-06-26 23:55:03 -05:00
vue()
2024-06-21 20:34:37 -05:00
],
// Others
devToolbar: {enabled: false},
experimental: {
directRenderScript: true,
},
2024-06-21 01:41:45 -05:00
});