- astro.config.mjs: site=https://dealplustech.co.th, add sitemap integration - Remove hardcoded sitemap.xml.ts (now auto-generated)
37 lines
884 B
JavaScript
37 lines
884 B
JavaScript
import { defineConfig } from 'astro/config'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import react from '@astrojs/react'
|
|
import sitemap from '@astrojs/sitemap'
|
|
import { fileURLToPath } from 'url'
|
|
import path from 'path'
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
|
|
export default defineConfig({
|
|
site: 'https://dealplustech.co.th',
|
|
output: 'static',
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@components': path.resolve(__dirname, './src/components'),
|
|
'@layouts': path.resolve(__dirname, './src/layouts'),
|
|
'@styles': path.resolve(__dirname, './src/styles'),
|
|
},
|
|
},
|
|
},
|
|
integrations: [
|
|
react(),
|
|
sitemap(),
|
|
],
|
|
build: {
|
|
assets: '_assets',
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 3100,
|
|
},
|
|
devToolbar: { enabled: false },
|
|
})
|