mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Setup sitemap
This commit is contained in:
parent
b26bc8b8e5
commit
27b95b8cae
1 changed files with 10 additions and 7 deletions
|
|
@ -4,8 +4,9 @@ import tailwind from '@astrojs/tailwind'
|
||||||
// Astro Netlify Reference
|
// Astro Netlify Reference
|
||||||
// https://github.com/withastro/astro/tree/main/packages/integrations/netlify
|
// https://github.com/withastro/astro/tree/main/packages/integrations/netlify
|
||||||
import netlify from '@astrojs/netlify/functions'
|
import netlify from '@astrojs/netlify/functions'
|
||||||
// import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
import sitemap from '@astrojs/sitemap'
|
||||||
|
|
||||||
|
// import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
|
||||||
|
|
||||||
import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
|
import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
|
||||||
|
|
||||||
|
|
@ -13,32 +14,34 @@ import { makeViteDefinitions } from './helpers/public-runtime-config.mjs'
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
publicDir: './static',
|
publicDir: './static',
|
||||||
site: 'https://doesitarm.com',
|
site: 'https://doesitarm.com',
|
||||||
|
|
||||||
integrations: [
|
integrations: [
|
||||||
netlify({
|
netlify({
|
||||||
dist: new URL('./dist/', import.meta.url)
|
dist: new URL('./dist/', import.meta.url)
|
||||||
}),
|
}),
|
||||||
// Astro Vue Reference
|
// Astro Vue Reference
|
||||||
|
// https://github.com/withastro/astro/blob/main/packages/integrations/sitemap/src/index.ts
|
||||||
// https://github.com/withastro/astro/tree/main/packages/integrations/vue
|
// https://github.com/withastro/astro/tree/main/packages/integrations/vue
|
||||||
vue(),
|
vue(),
|
||||||
tailwind()
|
tailwind(),
|
||||||
|
// Sitemap Reference
|
||||||
|
// https://github.com/withastro/astro/tree/main/packages/integrations/sitemap#configuration
|
||||||
|
sitemap()
|
||||||
],
|
],
|
||||||
|
|
||||||
// Vite options
|
// Vite options
|
||||||
// https://docs.astro.build/en/reference/configuration-reference/#vite
|
// https://docs.astro.build/en/reference/configuration-reference/#vite
|
||||||
vite: {
|
vite: {
|
||||||
// Vite: https://vitejs.dev/config/#define
|
// Vite: https://vitejs.dev/config/#define
|
||||||
// esbuild: https://esbuild.github.io/api/#define
|
// esbuild: https://esbuild.github.io/api/#define
|
||||||
define: {
|
define: {
|
||||||
...makeViteDefinitions(),
|
...makeViteDefinitions()
|
||||||
},
|
},
|
||||||
// plugins: [
|
// plugins: [
|
||||||
// viteCommonjs()
|
// viteCommonjs()
|
||||||
// ],
|
// ],
|
||||||
build: {
|
build: {
|
||||||
commonjsOptions: {
|
commonjsOptions: {
|
||||||
transformMixedEsModules: true,
|
transformMixedEsModules: true
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue