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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user