Set esbuild charset to utf8 and target to es2022 to avoid syntax errors from ASCII-escaped unicode in the bundled output on Netlify's build environment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
36 lines
783 B
JavaScript
36 lines
783 B
JavaScript
// @ts-check
|
|
import { defineConfig, fontProviders } from "astro/config";
|
|
import mdx from "@astrojs/mdx";
|
|
import sitemap from "@astrojs/sitemap";
|
|
|
|
import react from "@astrojs/react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import netlify from "@astrojs/netlify";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: "https://interactives.neeldhara.com",
|
|
integrations: [mdx(), sitemap(), react()],
|
|
output: "static",
|
|
adapter: netlify(),
|
|
|
|
fonts: [
|
|
{
|
|
provider: fontProviders.fontsource(),
|
|
name: "Imprima",
|
|
cssVariable: "--font-imprima",
|
|
},
|
|
],
|
|
|
|
vite: {
|
|
plugins: [tailwindcss()],
|
|
build: {
|
|
target: "es2022",
|
|
minify: "esbuild",
|
|
},
|
|
esbuild: {
|
|
target: "es2022",
|
|
charset: "utf8",
|
|
},
|
|
},
|
|
});
|