diff --git a/examples/sst/sst.config.ts b/examples/sst/sst.config.ts index 6cfb7f61..1a1a9d79 100644 --- a/examples/sst/sst.config.ts +++ b/examples/sst/sst.config.ts @@ -1,5 +1,6 @@ import { SSTConfig } from "sst"; +import { AppPagesRouter } from "./stacks/AppPagesRouter"; import { AppRouter } from "./stacks/AppRouter"; import { PagesRouter } from "./stacks/PagesRouter"; @@ -11,6 +12,6 @@ export default { }; }, stacks(app) { - app.stack(AppRouter).stack(PagesRouter); + app.stack(AppRouter).stack(PagesRouter).stack(AppPagesRouter); }, } satisfies SSTConfig; diff --git a/examples/sst/stacks/AppPagesRouter.ts b/examples/sst/stacks/AppPagesRouter.ts new file mode 100644 index 00000000..d6dcddef --- /dev/null +++ b/examples/sst/stacks/AppPagesRouter.ts @@ -0,0 +1,14 @@ +import { NextjsSite } from "sst/constructs"; + +export function AppPagesRouter({ stack }) { + const site = new NextjsSite(stack, "apppagesrouter", { + path: "../app-pages-router", + buildCommand: "npm run openbuild", + bind: [], + environment: {}, + }); + + stack.addOutputs({ + url: site.url, + }); +} diff --git a/package.json b/package.json index bdac6a72..dcc13a82 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "clean": "turbo run clean && rm -rf node_modules pnpm-lock.yaml", "lint": "eslint --ext .js,.ts,.tsx .", "lint:fix": "eslint --fix --ext .js,.ts,.tsx .", + "e2e:test": "turbo run e2e:test", "version": "./.changeset/version", "release": "./.changeset/release", "release-snapshot": "./.changeset/snapshot"