39 lines
No EOL
826 B
JavaScript
39 lines
No EOL
826 B
JavaScript
import { defineConfig, envField } from 'astro/config';
|
|
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";
|
|
import astroI18next from "astro-i18next";
|
|
|
|
export default defineConfig({
|
|
// Project Structure
|
|
publicDir: './src/public/',
|
|
// Use Server-Side Rendering
|
|
output: "server",
|
|
adapter: node({
|
|
mode: "standalone"
|
|
}),
|
|
// Security
|
|
security: {
|
|
checkOrigin: true
|
|
},
|
|
// Server Options
|
|
server: {
|
|
port: 6003,
|
|
host: true
|
|
},
|
|
// Integrations and Plugins
|
|
integrations: [
|
|
astroI18next(),
|
|
partytown(),
|
|
sitemap(),
|
|
robotsTxt(),
|
|
vue()
|
|
],
|
|
// Others
|
|
devToolbar: {enabled: false},
|
|
experimental: {
|
|
directRenderScript: true,
|
|
},
|
|
}); |