Skip to content

Commit

Permalink
Default tsconfig framework path to local. (vercel#644)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gdborton authored Jan 14, 2022
1 parent 6333e51 commit a6babd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"],
"@commerce/*": ["framework/commerce/*"],
"@framework": ["framework/shopify"],
"@framework/*": ["framework/shopify/*"]
"@framework": ["framework/local"],
"@framework/*": ["framework/local/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
Expand Down

0 comments on commit a6babd9

Please sign in to comment.