Skip to content

Commit a6babd9

Browse files
authored
Default tsconfig framework path to local. (vercel#644)
Testing locally it seems that `local` is what's used when there aren't any environment variables configured. I'm making this change because `live` doesn't currently support `fs` functions and therefore cannot update the `paths[@framework]` in next.config.js. This means deploying the commerce template from `vercel.com/live` generates an error instead of displaying the commerce page as would be displayed when running `npm run dev` locally.
1 parent 6333e51 commit a6babd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@components/*": ["components/*"],
2525
"@commerce": ["framework/commerce"],
2626
"@commerce/*": ["framework/commerce/*"],
27-
"@framework": ["framework/shopify"],
28-
"@framework/*": ["framework/shopify/*"]
27+
"@framework": ["framework/local"],
28+
"@framework/*": ["framework/local/*"]
2929
}
3030
},
3131
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],

0 commit comments

Comments
 (0)