BREAKING: merge API routes and pages concept (#53)

This commit merges API routes and pages into a single concept. The
pages/api folder is now not special anymore.
This commit is contained in:
Luca Casonato
2021-09-25 10:49:53 +02:00
committed by GitHub
parent aeaddb1eaa
commit f5b3faf0d8
12 changed files with 150 additions and 121 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ export class Bundler {
const entryPoints: Record<string, string> = {};
for (const page of this.#pages) {
entryPoints[page.name] = `fresh:///${page.name}`;
if (page.component !== undefined && page.runtimeJS) {
entryPoints[page.name] = `fresh:///${page.name}`;
}
}
await ensureEsbuildInialized();