Skip to content

Commit

Permalink
Update the sst urls (#90)
Browse files Browse the repository at this point in the history
Update the sst/open-next URLs into opennextjs/opennextjs-aws
  • Loading branch information
shashankboosi authored Oct 11, 2024
1 parent 652c1d1 commit f7b3a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cloudflare/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DONE:
- figure out the assets
- copy the template folders

## Open next [example app](https://github.com/sst/open-next/tree/main/example)
## Open next [example app](https://github.com/opennextjs/opennextjs-aws/tree/main/example)

Changes:

Expand Down
4 changes: 2 additions & 2 deletions packages/cloudflare/src/cli/build/build-next-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export async function buildNextjsApp(nextAppDir: string): Promise<void> {
runNextBuildCommand(pm.name, nextAppDir);
}

// equivalent to: https://github.com/sst/open-next/blob/f61b0e94/packages/open-next/src/build.ts#L175-L186
// equivalent to: https://github.com/opennextjs/opennextjs-aws/blob/f61b0e94/packages/open-next/src/build.ts#L175-L186
function runNextBuildCommand(packager: PackageManager, nextAppDir: string) {
const command = `${packager === "npm" ? "npx" : packager} next build`;
execSync(command, {
stdio: "inherit",
cwd: nextAppDir,
env: {
...process.env,
// equivalent to: https://github.com/sst/open-next/blob/f61b0e9/packages/open-next/src/build.ts#L168-L173
// equivalent to: https://github.com/opennextjs/opennextjs-aws/blob/f61b0e9/packages/open-next/src/build.ts#L168-L173
// Equivalent to setting `output: "standalone"` in next.config.js
NEXT_PRIVATE_STANDALONE: "true",
},
Expand Down

0 comments on commit f7b3a10

Please sign in to comment.