DEV Community

Bryan
Bryan

Posted on • Originally published at devlogbook.com

5 1

Deploy Vite VueJs App to DigitalOcean App Platform with vue router working

Resources

  1. Choose code source location
  2. Click the pencil to edit the app as show in the image below Edit app
  3. Edit Resource Type from Web Service to Static Site

Environment Variables

Optional Add env variables for the app

Info

Optional Update App info

Review

Review and Create Resources

Edit App Spec

Note: Required, since it's a SPA, the routes created with Vue Router will not work

  1. Go to the app settings in Digital Ocean App settings in Digital Ocean
  2. Scroll down to App Spec and click Edit App spec
  3. Add index_document: index.html right below the last line with the same indentation as the one before and Save ```yaml

Check the indentation

  routes:
  - path: /
  source_dir: /
  index_document: index.html
Enter fullscreen mode Exit fullscreen mode
Enter fullscreen mode Exit fullscreen mode

Image of Datadog

Master Mobile Monitoring for iOS Apps

Monitor your app’s health with real-time insights into crash-free rates, start times, and more. Optimize performance and prevent user churn by addressing critical issues like app hangs, and ANRs. Learn how to keep your iOS app running smoothly across all devices by downloading this eBook.

Get The eBook

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs