Introduction
This guide covers deploying Vue.js applications on Shard Cloud.Creating Your Project
Ensure you have Node.js and npm installed.Creating a New Vue Project
Building Your Project
Build the production output:dist/ folder with optimized static files.
Serving Your Vue App
Vue apps are static files that need a server:Using serve
Updatepackage.json:
package.json
Using Express
Create aserver.js file:
server.js
Shard Cloud Configuration
Create a.shardcloud file:
.shardcloud
Deploying
Prepare Your Files
Ensure you have:
src/folderpublic/folderpackage.json.shardcloudvite.config.js
Upload to Shard Cloud
Go to Shard Cloud Dashboard and upload.
Additional Resources
Visit the official Vue documentation for more information.Troubleshooting
Build errors
Build errors
- Check for TypeScript or ESLint errors
- Verify all dependencies are installed
Routes not working
Routes not working
Configure Vue Router to use history mode and ensure server serves
index.html for all routes.