Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions src/_tutorials/lovable/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,7 @@ Before continuing, make sure your Lovable project is synced with GitHub. To do t
```
This instructs the platform to start the Node.js server generated by `Nitro`. The server listens on the port provided by the `PORT` environment variable.

4. Update Nitro in your package.json file. Make sure your `devDependencies` contain:

```json
{
"devDependencies": {
"nitro": "^3.0.260603-beta"
}
}
```

This version is required so the Lovable Vite config can generate the correct production server.

5. Configure Vite to build a Node.js server for production. In your `vite.config.ts`, add the Nitro node-server preset:
4. Configure Vite to build a Node.js server for production. In your `vite.config.ts`, add the Nitro node-server preset:

```ts
import { defineConfig } from "@lovable.dev/vite-tanstack-config";
Expand All @@ -64,7 +52,7 @@ Before continuing, make sure your Lovable project is synced with GitHub. To do t

6. Commit and push the files you just updated:
Comment thread
SC-Samir marked this conversation as resolved.
Outdated
```bash
git add vite.config.ts package.json Procfile
git add vite.config.ts Procfile
git commit -m "Migrate to scalingo"
git push
```
Expand Down Expand Up @@ -98,12 +86,11 @@ Once the backup is downloaded, import it into your Scalingo PostgreSQL database
If you update your project from Lovable later, the changes will be sync with your GitHub repository, make sure the following files still contain the changes described in this tutorial:

- `Procfile`
- `package.json`
- `vite.config.ts`

If necessary, reapply the changes, then commit and push them:
```bash
git add vite.config.ts package.json Procfile
git add vite.config.ts Procfile
git commit -m "Update Lovable project for Scalingo"
git push
```
Expand Down