Skip to content

Pre render does not work Vike + NX #1474

Discussion options

You must be logged in to vote

We replaced Nx vite build with the vite build directly and it fixed the issue

{
  "name": "my-app",
  "$schema": "../node_modules/nx/schemas/project-schema.json",
  "sourceRoot": "my-app/src",
  "projectType": "application",
  "targets": {
    "build": {
      "executor": "nx:run-commands",
      "outputs": [
        "{options.outputPath}"
      ],
      "defaultConfiguration": "production",
      "options": {
        "cwd": "my-app",
        "command": "vite build",
        "outputPath": "dist/my-app"
      },
      "configurations": {
        "development": {
          "mode": "development"
        },
        "production": {
          "mode": "production"
        }
      }
    },
    "s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@peeyushsingla
Comment options

Answer selected by peeyushsingla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants