Skip to content

Commit

Permalink
Netlify: Trying to ignore all scripts for the build
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Sep 6, 2024
1 parent 4f4c32e commit f2c7227
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import keystatic from '@keystatic/astro'
import { defineConfig } from 'astro/config'
import { glob } from 'glob'
import remarkToc from 'remark-toc'

// ABOUT:
Expand Down Expand Up @@ -58,5 +59,10 @@ export default defineConfig({
exclude: ['route-snapper'],
},
plugins: [],
build: {
rollupOptions: {
external: [glob('scripts/**/*.*'), glob('keystatic/scripts/**/*.*')].flat(),
},
},
},
})

0 comments on commit f2c7227

Please sign in to comment.