33 lines
689 B
JavaScript
33 lines
689 B
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import node from '@astrojs/node';
|
|
import svelte from '@astrojs/svelte';
|
|
import tailwind from '@astrojs/tailwind';
|
|
|
|
const nodeProcess = /** @type {any} */ (globalThis).process;
|
|
const disableHmrForLighthouse = nodeProcess?.env?.LIGHTHOUSE_NO_HMR === '1';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
output: 'server',
|
|
adapter: node({
|
|
mode: 'standalone',
|
|
}),
|
|
integrations: [
|
|
svelte(),
|
|
tailwind({
|
|
applyBaseStyles: false
|
|
})
|
|
],
|
|
devToolbar: {
|
|
enabled: false,
|
|
},
|
|
vite: disableHmrForLighthouse
|
|
? {
|
|
server: {
|
|
hmr: false,
|
|
},
|
|
}
|
|
: undefined,
|
|
});
|