INNER CODE UNIT · TypeScript

r

PaulWoitaschek/Voice · artwork/vite.config.ts:43

        const r = req.url.match(/^\/api\/raw\/([^/?]+)\.json/)
        if (r) {
          res.setHeader('content-type', 'application/json')
          res.end(JSON.stringify(listRawScreenshots(decodeURIComponent(r[1]))))
          return
        }
        next()
      })
    },
  }
}

export default defineConfig({
  root: resolve(HERE, 'src'),
  publicDir: resolve(HERE, 'public'),
  server: {
    fs: {
      allow: [REPO_ROOT],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…