From a6babd93d50ebc1b9106edcfb5834a8a2437838e Mon Sep 17 00:00:00 2001 From: Gary Borton Date: Fri, 14 Jan 2022 11:33:37 -0800 Subject: [PATCH] Default tsconfig framework path to local. (#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. --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 2dd55370e..db71b765b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"],