[READ-ONLY] Mirror of https://github.com/danielroe/nuxt-deno.
0

Configure Feed

Select the types of activity you want to include in your feed.

nuxt-deno / nuxt.config.ts
824 B 28 lines
1import deno from './rollup-plugin-node-deno' 2// https://v3.nuxtjs.org/api/configuration/nuxt.config 3export default defineNuxtConfig({ 4 nitro: { 5 entry: '~/deno-entry', 6 commands: { 7 preview: 'deno run --unstable --allow-net --allow-read --allow-env ./server/index.mjs' 8 }, 9 rollupConfig: { 10 output: { 11 hoistTransitiveImports: false 12 }, 13 plugins: [ 14 deno(), 15 { 16 name: 'inject-process', 17 renderChunk (code, chunk) { 18 if (chunk.isEntry) { 19 return "import process from 'https://deno.land/std/node/process.ts'\n" + code 20 // TODO: use magic-string when moving to nitro 21 // s.prepend("import process from 'https://deno.land/std/node/process.ts'\n") 22 } 23 } 24 } 25 ], 26 }, 27 }, 28})