QwikCommunity / pwa

Turn your Qwik Application into an offline compatible PWA
https://pwa-a3b.pages.dev/
90 stars 8 forks source link

fix: compatibility for vercel adapter #14

Closed Loshido closed 8 months ago

Aslemammad commented 8 months ago

Does this fix the issue completely?

Loshido commented 8 months ago

it has fixed my case, however i had to change a path in adapters\vercel-edge\vite.config.ts

// [...]
export default extendConfig(baseConfig, () => {
  return {
    build: {
      // [...]
+       outDir: ".vercel/output/static",
-       outDir: ".vercel/output/functions/_qwik-city.func",
    },
    plugins: [vercelEdgeAdapter()],
  };
});

it builds correctly

Loshido commented 8 months ago

Actually we can close the pr, with further debugging i found that there was no issue in this rep, i just did not configure correctly. I was supposed to change ´outDir´ in the qwikVite plugin's option. It didn't work when i tried before the creation of the issue because there is an already existing issue in the vercel adapter that made me thought the issue was in this rep. this issue