mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 15:59:33 +08:00
fix trailingSlash
This commit is contained in:
parent
f0b5baec3a
commit
2a58c54703
4 changed files with 7 additions and 10 deletions
|
@ -1,9 +1,6 @@
|
|||
import type { LayoutLoad } from './$types'
|
||||
export const prerender = true
|
||||
export const trailingSlash =
|
||||
!Object.keys(process.env).some(key => ['VERCEL', 'CF_PAGES', 'NETLIFY'].includes(key)) && process.env.ADAPTER !== 'node'
|
||||
? 'always'
|
||||
: undefined
|
||||
export const trailingSlash = 'always'
|
||||
export const load: LayoutLoad = async ({ url, fetch }) => ({
|
||||
path: url.pathname,
|
||||
res: await fetch('/posts.json').then(res => res.json())
|
||||
|
|
|
@ -140,7 +140,7 @@ server {
|
|||
}
|
||||
```
|
||||
|
||||
SSL/TLS 配置可以看我之前这篇:[配置 Cloudflare 的免费 SSL 证书](2022-06-12-cloudflare),或者用 certbot 配置
|
||||
SSL/TLS 配置可以看我之前这篇:[配置 Cloudflare 的免费 SSL 证书](/2022-06-12-cloudflare),或者用 certbot 配置
|
||||
|
||||
最后 `sudo nginx -t` 以及 `sudo systemctl reload nginx` 一下就可以在相应域名看到初始界面啦。
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ summary: logo / UI / 包装 / 儿童玩具 ……
|
|||
|
||||
## 二十四节气茶包
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## UI 设计
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ sudo mkdir media
|
|||
|
||||
## 4. 配置反代和 SSL
|
||||
|
||||
我比较懒,设置还是跟之前的[配置 Cloudflare 的免费 SSL 证书](2022-06-12-cloudflare)里面一样配置,如果不想按照这个方法来配置反代的话可以参考:[利用 Nginx 进行反代](https://mantyke.icu/posts/2021/rsshub-miniflux/#%E5%88%A9%E7%94%A8nginx%E8%BF%9B%E8%A1%8C%E5%8F%8D%E4%BB%A3)中的配置
|
||||
我比较懒,设置还是跟之前的[配置 Cloudflare 的免费 SSL 证书](/2022-06-12-cloudflare)里面一样配置,如果不想按照这个方法来配置反代的话可以参考:[利用 Nginx 进行反代](https://mantyke.icu/posts/2021/rsshub-miniflux/#%E5%88%A9%E7%94%A8nginx%E8%BF%9B%E8%A1%8C%E5%8F%8D%E4%BB%A3)中的配置
|
||||
|
||||
```bash
|
||||
sudo nano /etc/nginx/conf.d/lwt.conf
|
||||
|
|
Loading…
Reference in a new issue