Files
dealplustech-astroreal/astro.config.mjs
Kunthawat Greethong 85a0a54eb4 Use @astrojs/sitemap instead of manual sitemap.xml.ts
- astro.config.mjs: site=https://dealplustech.co.th, add sitemap integration
- Remove hardcoded sitemap.xml.ts (now auto-generated)
2026-06-16 09:48:38 +07:00

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 },
})