question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change client from react (Next.js) to vue (Nuxt.js)

See original GitHub issue

Hi! I want to change ReactJS to VueJS. My steps:

  • Download api-platform ver. 2.6.2,
  • Build images,
  • Delete all files from ./pwa (Dockerfile, and .* files left),
  • Follow https://api-platform.com/docs/client-generator/nuxtjs/ with command prefix docker-compose run --rm pwa ...,
  • Command ... yarn create nuxt-app your-app-name creates ./pwa/your-app-name directory so I move all files to ./pwa,
  • Once more build pwa images docker-compose build pwa,
  • Run stack docker-compose up.

All request from localhost are going to api instead of pwa !? o0

Am I miss something from docs? I shouldn’t delete files from ./pwa (I don’t want to mess with old React files, I want fresh install of Vue)?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

5reactions
d0niekcommented, Feb 26, 2021

My changes in caddyfile:

-    || {path}.startsWith("/_next")
+    || {path} == "/v.png"
+    || {path} == "/vuetify-logo.svg"
+    || {path}.startsWith("/_loading")
+    || {path}.startsWith("/_nuxt")
+    || {path}.startsWith("/__webpack_hmr")
3reactions
plaubcommented, Feb 28, 2021

hi, i had the same problem as @HugoFerrant and solved it by adding:

ENV NUXT_HOST=0.0.0.0 ENV NUXT_PORT=3000

to the pwa Dockerfile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change client from react (Next.js) to vue (Nuxt.js)
I want to change ReactJS to VueJS. My steps: Download api-platform ver. 2.6.2,; Build images,; Delete all files from ./pwa (Dockerfile, and ....
Read more >
React.js / Next.js and Vue.js / Nuxt.js ... - DEV Community ‍ ‍
React.js and Vue.js are both great frameworks. And Next.js and Nuxt.js even bring them to the next level, which helps us to create...
Read more >
React.js / Next.js and Vue.js / Nuxt.js Syntax Comparison Side ...
Change -State. React.js. Class component. class MyReactComponent extends React.Component { state = { count: 0, }; ...
Read more >
Next.js vs Nuxt.js - Is There A Clear Winner? | Clean Commit
Nuxt.js and Next.js share a ton of similarities and are both hot frameworks right now. We wanted to provide some insights into how...
Read more >
Next.js vs NuxtJS: a comparison of two powerhouses
NuxtJS is a free, open-source JavaScript framework used to build Vue.js apps. Its objective is to make it simple, quick, and organized for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found