Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
sst.aws.Nextjs: update default version of @opennextjs/aws
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 15, 2024
1 parent 660691f commit 28605fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/src/components/aws/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { dynamodb, lambda } from "@pulumi/aws";
import { URL_UNAVAILABLE } from "./linkable.js";
import { getOpenNextPackage } from "../../util/compare-semver.js";

const DEFAULT_OPEN_NEXT_VERSION = "3.1.4";
const DEFAULT_OPEN_NEXT_VERSION = "3.1.6";
const DEFAULT_CACHE_POLICY_ALLOWED_HEADERS = ["x-open-next-cache-key"];

type BaseFunction = {
Expand Down Expand Up @@ -596,7 +596,6 @@ export class Nextjs extends Component implements Link.Linkable {
if (buildCommand) return buildCommand;
const version = openNextVersion ?? DEFAULT_OPEN_NEXT_VERSION;
const packageName = getOpenNextPackage(version);

return `npx --yes ${packageName}@${version} build`;
},
);
Expand Down

0 comments on commit 28605fa

Please sign in to comment.