mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
✨ feat: Add api (#112)
Add the api route -> https://nexus.nestri.workers.dev/
This commit is contained in:
22
infra/api.ts
Normal file
22
infra/api.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { isPermanentStage } from "./stage";
|
||||
|
||||
//TODO: Use this instead of wrangler
|
||||
// export const api = new sst.cloudflare.Worker("apiApi", {
|
||||
// url: true,
|
||||
// handler: "packages/api/src/index.ts",
|
||||
// // live: true,
|
||||
// });
|
||||
|
||||
if (!isPermanentStage) {
|
||||
new sst.x.DevCommand("apiDev", {
|
||||
dev: {
|
||||
command: "bun run dev",
|
||||
directory: "packages/api",
|
||||
autostart: true,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// export const outputs = {
|
||||
// api: api.url
|
||||
// }
|
||||
Reference in New Issue
Block a user