Skip to content

Commit

Permalink
add e2e:test script; add appPagesRouter test (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
khuezy committed Aug 31, 2023
1 parent c4d012d commit a8abed5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/sst/sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { SSTConfig } from "sst";

import { AppPagesRouter } from "./stacks/AppPagesRouter";
import { AppRouter } from "./stacks/AppRouter";
import { PagesRouter } from "./stacks/PagesRouter";

Expand All @@ -11,6 +12,6 @@ export default {
};
},
stacks(app) {
app.stack(AppRouter).stack(PagesRouter);
app.stack(AppRouter).stack(PagesRouter).stack(AppPagesRouter);
},
} satisfies SSTConfig;
14 changes: 14 additions & 0 deletions examples/sst/stacks/AppPagesRouter.ts
Original file line number Diff line number Diff line change
@@ -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,
});
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a8abed5

Please sign in to comment.