Fix:use LayoutServerLoad, update dependency
This commit is contained in:
parent
c4ca7ad81c
commit
68e5b3d11a
3 changed files with 824 additions and 822 deletions
|
|
@ -11,7 +11,7 @@
|
|||
- [Argo CD](https://argo-cd.readthedocs.io/en/stable/) deploy ขึ้นระบบ Production (K8s)
|
||||
- [FullCalendar](https://github.com/schooltechx/youtube/blob/main/svelte/component/Calendar/FullCalendar.md) รองรับพ.ศ. ใช้แค่ฟีเจอร์[ฟรีก็น่าจะพอ](https://fullcalendar.io/license#:~:text=or%20FullCalendar%20Premium.-,FullCalendar%20Standard,all%20copyright%20headers%20are%20preserved.)
|
||||
- [Day.js](https://day.js.org/) ในฟอร์แม็ตวันในรูปแบบ local ไทยรองรับ พ.ศ.
|
||||
|
||||
- ตรวจสอบเวอร์ชั่นตาม docker tag https://bma-qualifying.frappet.synology.me/api/dev
|
||||
## วีดีโอแสดงการทำงานทั้งหมด
|
||||
[](https://youtu.be/7CER67WVWec "Automate Development")
|
||||
|
||||
|
|
|
|||
1638
cms/package-lock.json
generated
1638
cms/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,10 +1,8 @@
|
|||
import { env } from '$env/dynamic/private'
|
||||
import type { PageServerLoad } from './$types'
|
||||
export const load: PageServerLoad = async ({fetch}) => {
|
||||
import type { LayoutServerLoad } from './$types'
|
||||
export const load: LayoutServerLoad = async ({fetch}) => {
|
||||
const url = env.API_CMS_URL+"/home"
|
||||
console.log(url)
|
||||
const res = await fetch(url)
|
||||
console.log("after fetch")
|
||||
if(!res.ok)
|
||||
{
|
||||
console.log("load offline data instead")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue