Skip to content

Commit

Permalink
astro commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juanandres-montero committed Mar 27, 2024
1 parent cb24d44 commit c21ba7f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
16 changes: 9 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import sitemap from '@astrojs/sitemap';
import UnoCSS from 'unocss/astro';
import netlify from "@astrojs/netlify";

// https://astro.build/config
export default defineConfig({
// used to generate images
site: 'https://juanandres-montero.github.io',
site:
process.env.VERCEL_ENV === 'production'
? 'https://juanandres-montero.github.io'
: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}/`
: 'https://localhost:3000/',
base: 'OPCR',
trailingSlash: 'ignore',
integrations: [sitemap(), UnoCSS({
injectReset: true
})],
integrations: [sitemap(), UnoCSS({ injectReset: true })],
vite: {
optimizeDeps: {
exclude: ['@resvg/resvg-js']
}
exclude: ['@resvg/resvg-js'],
},
},
output: "server",
adapter: netlify()
Expand Down
16 changes: 9 additions & 7 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ import sitemap from '@astrojs/sitemap';
import UnoCSS from 'unocss/astro';
import netlify from "@astrojs/netlify";

// https://astro.build/config
export default defineConfig({
// used to generate images
site: 'https://juanandres-montero.github.io',
site:
process.env.VERCEL_ENV === 'production'
? 'https://juanandres-montero.github.io'
: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}/`
: 'https://localhost:3000/',
base: 'OPCR',
trailingSlash: 'ignore',
integrations: [sitemap(), UnoCSS({
injectReset: true
})],
integrations: [sitemap(), UnoCSS({ injectReset: true })],
vite: {
optimizeDeps: {
exclude: ['@resvg/resvg-js']
}
exclude: ['@resvg/resvg-js'],
},
},
output: "server",
adapter: netlify()
Expand Down

0 comments on commit c21ba7f

Please sign in to comment.