fix page not update(cached) in container, add volume for testing.
All checks were successful
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 3s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 1m15s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 5s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 1s
All checks were successful
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 3s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 1m15s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Successful in 5s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Successful in 1s
This commit is contained in:
parent
a37c55b9aa
commit
df2f60dc1c
3 changed files with 12 additions and 31 deletions
|
|
@ -1,4 +1,6 @@
|
|||
// app/page.tsx
|
||||
export const dynamic = 'force-dynamic'
|
||||
export const revalidate = 0;
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import Link from "next/link";
|
||||
|
|
@ -6,8 +8,8 @@ import TmplHome from "@/components/TmplHome";
|
|||
import { DropdownData } from '@/components/utils/DependentDropdown';
|
||||
import {
|
||||
ToyBrick, FilePenLine, Rocket, Workflow, NotepadTextDashed,
|
||||
Files, Blocks, FileQuestionMark, ShieldLock, FileUp, GitMerge,
|
||||
ExternalLink, FileText
|
||||
Blocks, FileQuestionMark, ShieldLock, FileUp, GitMerge,
|
||||
FileText
|
||||
} from "lucide-react";
|
||||
|
||||
export default function HomePage() {
|
||||
|
|
@ -35,7 +37,8 @@ export default function HomePage() {
|
|||
.filter(json => json.startsWith(key))
|
||||
.map(json => json.replace('.json', ''));
|
||||
|
||||
templateData[key] = matchedJsons.length > 0 ? matchedJsons : ['default'];
|
||||
templateData[key] = matchedJsons
|
||||
// templateData[key] = matchedJsons.length > 0 ? matchedJsons : ['default'];
|
||||
});
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@ services:
|
|||
- DOCX_WORKERS=4
|
||||
- NOTE_SSO_DEV_MINT=1 ## dev
|
||||
|
||||
volumes:
|
||||
- ecourt-note-uploads:/app/public/note/uploads
|
||||
- ./public/tmpl:/app/public/tmpl:ro
|
||||
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
|
|
@ -102,6 +106,7 @@ services:
|
|||
|
||||
volumes:
|
||||
# pin ชื่อจริงไม่มี prefix <project>_ ของ compose ให้ตรงชื่อวอลุ่มจาก docker run เดิม
|
||||
ecourt-note-uploads: {}
|
||||
judes-note-db-data:
|
||||
name: judes-note-db-data
|
||||
judes-note-minio-data:
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Test Download DOCX a</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2 className="font-semibold text-blue-600 mb-2">A a Get</h2>
|
||||
<a href="/docedit/api/template/download-docx?tid=T_X&fid=T_no_warning&uid=john&uname=John%20Doe">T_no_warning_john_xxx.docx</a><br/>
|
||||
<a href="/docedit/api/template/download-docx?tid=T_X&fid=TF_no_warning_P2&uid=john&uname=John%20Doe">TF_no_warning_P2_john_xxx.docx</a><br/>
|
||||
<a href="/docedit/api/template/download-docx?tid=T_X&fid=TS_P2_IN&uid=john&uname=John%20Doe">TS_P2_IN_john_xxx.docx</a><br/>
|
||||
|
||||
<a href="/docedit/api/template/download-docx?tid=T12_X&fid=T12_b2_IN&uid=john&uname=John%20Doe">T12_b2_IN_john_xxx.docx</a><br/>
|
||||
<a href="/docedit/api/template/download-docx?tid=T12_X&fid=T12_FD155_3s-long&uid=john&uname=John%20Doe">T12_FD155_3s-long_john_xxx.docx</a><br/>
|
||||
|
||||
<h2 className="font-semibold text-blue-600 mb-2">Template & Data</h2>
|
||||
Template: <a href="/docedit/tmpl/T_X.docx">T_X.docx</a>,
|
||||
<a href="/docedit/tmpl/T12_X.docx">T12_X.docx</a><br/>
|
||||
Data: <a href="/docedit/tmpl/TF_no_warning_P2.json">TF_no_warning_P2.json</a>,
|
||||
<a href="/docedit/tmpl/T_no_warning.json">T_no_warning.json</a>,
|
||||
<a href="/docedit/tmpl/TS_P2_IN.json">TS_P2_IN.json</a><br/>
|
||||
<a href="/docedit/tmpl/T12_b2_IN.json">T12_b2_IN.json</a>,
|
||||
<a href="/docedit/tmpl/T12_FD155_3s-long.json">T12_FD155_3s-long.json</a>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue