Lexo
Lexo
NNuxt
Created by Lexo on 4/29/2025 in #❓・help
Issues Deploying Nuxt Application on o2switch with SSR and drizzle-kit Migrations
Hello, I am learning Nuxt and have reached the deployment phase. However, I am encountering significant issues. I am trying to set up the Nuxt server on the o2switch hosting service (which supports Node.js and PostgreSQL), but it is not working. I run npm run build and upload the output file to the server via FileZilla. I understand that I need to use a loader with a loader.cjs file to load the .mjs files. (Tutorials followed: https://gist.github.com/florianguigue/13869fc17053d17a0f9dc3f2ade0a995 https://blog.bzhwebcreation.fr/article/deployer-son-application-nuxt-3-sur-o2switch) Sorry, the tutorials are in French. I managed to get the site working by disabling SSR, but I am unable to use drizzle-kit commands to run migrations. I am stuck and a bit confused about the different methods to proceed. If you can help me, I would be very grateful.
6 replies