export default defineConfig({
site: "https://mysite.com",
plugins: [
tsconfigPaths(),
nodePolyfills({
// Specific modules that should not be polyfilled.
exclude: [],
// Whether to polyfill specific globals.
globals: {
Buffer: true, // can also be 'build', 'dev', or false
global: true,
process: true,
},
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],
export default defineConfig({
site: "https://mysite.com",
plugins: [
tsconfigPaths(),
nodePolyfills({
// Specific modules that should not be polyfilled.
exclude: [],
// Whether to polyfill specific globals.
globals: {
Buffer: true, // can also be 'build', 'dev', or false
global: true,
process: true,
},
// Whether to polyfill `node:` protocol imports.
protocolImports: true,
}),
],