Skip to content

Latest commit

 

History

History
107 lines (66 loc) · 3.52 KB

README.md

File metadata and controls

107 lines (66 loc) · 3.52 KB

vue-neuron: Static site powered by VUE / Vite + Netlify

Netlify Status

Demo

Demo website published to: https://vue-neuron.netlify.app

Project Setup, Development & Deployment

Setup

npm install netlify-cli -g

npm install

Development

netlify dev

Build for Production

netlify build

Deploy to Netlify (after netlify build)

Automatically CI deployment with Github repository is Stopped (See document "Stop or activate builds"). Manually deployment by the netlify-cli command lines below.

# Deploy to Netlify as draft
netlify deploy

# Deploy to Netlify as production
netlify deploy --prod

Project Contents

Mail Notification by Netlify Functions / Edge Functions / Email Integration Plugin / Form

Netlify Functions

Deployment Notes: Compressing whole directory and files of netlify/functions/aliyun-dm-sendmail/ recursively to a ZIP archive file. Then manually deploy to Netlify server by command line netlify deploy --prod.

Netlify Email Integration Plugin

Netlify Edge Functions

Netlify Docs refer to: Function, Edge Functions, Email Integration

Netlify Form

Appendix

Netlify One-Click Deployment for Github public repository

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/dyslab/vue-neuron)

Deploy to Netlify

Netlify Function CLI

# Netlify functions help
netlify help functions

# Create new function
netlify functions:create

# List functions
netlify functions:list

# Start Netlify development environment
netlify dev

# Netlify function test via browser
http://localhost:8888/.netlify/functions/aliyun-dm-sendmail
# Or, Test 'GET' methon by CLI
netlify functions:invoke --port 8888 aliyun-dm-sendmail
# Test 'POST' methon with a json file body
netlify functions:invoke -p assets/example.json --port 8888 aliyun-dm-sendmail

# Alternatively, solely start Netlify functions serve
netlify functions:serve # All above command line argument '--port' set to '9999' instead

Vite Customize configuration

See Vite Configuration Reference.