@next-community/adapter-vercel 0.0.1-beta.21 → 0.0.1-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10630,7 +10630,8 @@ var myAdapter = {
10630
10630
  if (process.env.VERCEL_HASH_SALT != null) {
10631
10631
  config.experimental.outputHashSalt = (config.experimental.outputHashSalt ?? "") + process.env.VERCEL_HASH_SALT;
10632
10632
  }
10633
- if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD && process.env.VERCEL_PREVIEW_COMMENTS_ENABLED === "1") {
10633
+ if (ctx.phase === import_constants2.PHASE_PRODUCTION_BUILD && process.env.VERCEL_PREVIEW_COMMENTS_ENABLED === "1" && // Only available in newer Next.js versions
10634
+ typeof ctx.projectDir !== "undefined") {
10634
10635
  const dir = import_node_path2.default.join(ctx.projectDir, ".vercel/");
10635
10636
  await import_promises2.default.mkdir(dir, { recursive: true });
10636
10637
  await import_promises2.default.writeFile(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-community/adapter-vercel",
3
- "version": "0.0.1-beta.21",
3
+ "version": "0.0.1-beta.22",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "files": [