Skip to content

Commit

Permalink
move astro.config to ts and remove unused options
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Jun 21, 2024
1 parent c648ac7 commit c63ae5a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions astro.config.mjs → astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ import { sitemapIntegration } from './src/libs/integrations/sitemap';
const { SITE_URL } = CONFIG;
const remarkPlugins = [remarkReadingTime];

/** @type {import('@types/astro').AstroUserConfig} */

// https://astro.build/config
export default defineConfig({
site: SITE_URL,
trailingSlash: 'ignore',
Expand All @@ -43,10 +40,7 @@ export default defineConfig({
tailwind({
applyBaseStyles: false,
}),
mdx({
remarkPlugins,
extendPlugins: 'astroDefaults',
}),
mdx(),
icon({
iconDir: 'src/assets/icons',
}),
Expand All @@ -57,12 +51,6 @@ export default defineConfig({
vite: {
build: {
sourcemap: false,
// should fix import.meta.glob() Promise rejection
optimizeDeps: {
esbuildOptions: {
target: 'es2020',
},
},
},
},
});

0 comments on commit c63ae5a

Please sign in to comment.