Report this

What is the reason for this report?

Deploy Error Health Checks - Why will this Vite App will not deploy?

Posted on January 29, 2024

Deploy Error: Health Checks Vite App failes to deploy

Hello- Currently recieving an error when attempting to deploy a svelte vite app. Does anyone know what is needed to be altered to correct the error described below?

The code builds & runs successfully locally. When in the app it is set up to deploy from a github repo. The code builds successfully & then in the “Deploy logs” this is the error:


appname@1.0.0 preview

vite preview 0.0.0.0

Local:   [http://localhost:4173/](http://localhost:4173/)

Network: use --host to expose

The package.json file looks like this:

    "scripts": {
        "dev": "vite dev",
        "start": "vite dev",
        "build": "vite build",
        "prod": "vite dev -- --host 0.0.0.0 --port 8080",
        "preview": "vite preview",
        "test": "npm run test:integration && npm run test:unit",
        "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
        "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
        "lint": "prettier --check . && eslint .",
        "format": "prettier --write .",
        "test:integration": "playwright test",
        "test:unit": "vitest",
        "postbuild": "node --experimental-json-modules ./generate-sitemap.js"
    },

What needs to be altered to have a successful deployment?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.