Skip to content

noobmastercn/leptos-csr-template

Repository files navigation

cargo generate --git https://github.com/noobmastercn/leptos-csr-template
brew install trunk
npm install -D tailwindcss
npx tailwindcss init
trunk serve
trunk build --release --no-default-features
server {
    listen 80;
    server_name yourdomain.com;

    root /var/www/html;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html; # 当Nginx无法直接匹配到请求的文件或目录时,重定向请求到/index.html,这时前端路由器可以接管并根据路由逻辑显示相应的页面,包括自定义的404页面。
    }
}

About

leptos csr 模板

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published