diff --git a/.gitignore b/.gitignore index 065b3e455..46492da16 100644 --- a/.gitignore +++ b/.gitignore @@ -38,4 +38,7 @@ yarn-error.log* .turbo # vercel -.vercel \ No newline at end of file +.vercel + +#from yarn build +apps/backend/public \ No newline at end of file diff --git a/apps/backend/.env.template b/apps/backend/.env.template index ab2abeded..090c627b6 100644 --- a/apps/backend/.env.template +++ b/apps/backend/.env.template @@ -22,5 +22,5 @@ VITE_TALK_JS_SECRET_API_KEY=xxx # Used in notifications VENDOR_PANEL_URL=http://localhost:5173 -STOREFRONT_URL=http://localhost:7001 +STOREFRONT_URL=http://localhost:3000 BACKEND_URL=http://localhost:9000 \ No newline at end of file diff --git a/apps/backend/package.json b/apps/backend/package.json index b51265207..5df5de07f 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -13,7 +13,7 @@ "medusa" ], "scripts": { - "build": "medusa build && ln -s .medusa/server/public/ public", + "build": "medusa build && node -e \"const fs=require('fs');const path=require('path');const target='.medusa/server/public/';const link='public';try{if(fs.existsSync(link))fs.rmSync(link,{recursive:true,force:true});fs.symlinkSync(target,link,process.platform==='win32'?'junction':'dir');console.log('✔ Symlink created:',link,'→',target);}catch(e){console.error('✖ Failed to create symlink:',e.message);process.exit(1);}\"", "seed": "medusa exec ./src/scripts/seed.ts", "start": "medusa start --types=false", "dev": "medusa develop --types=false", diff --git a/apps/backend/public b/apps/backend/public deleted file mode 120000 index aa2d64d55..000000000 --- a/apps/backend/public +++ /dev/null @@ -1 +0,0 @@ -.medusa/server/public/ \ No newline at end of file