File tree Expand file tree Collapse file tree 13 files changed +80
-27
lines changed
Expand file tree Collapse file tree 13 files changed +80
-27
lines changed Original file line number Diff line number Diff line change 11! .env. *
22.env.keys
3+ ! frontend /dist
4+ node_modules
Original file line number Diff line number Diff line change 1+ dev :
2+ sh scripts/package/dev.sh
3+ sh scripts/package/tail.sh
4+
5+ tail :
6+ sh scripts/package/tail.sh
7+
18sign :
29 sh scripts/git/sign.sh
310
Original file line number Diff line number Diff line change @@ -5,23 +5,15 @@ RUN mv /root/.local/share/pnpm/pnpm /usr/bin/
55
66WORKDIR /usr/src/app
77
8- COPY .env.production ./
9- COPY frontend/package.json ./
10- COPY frontend/pnpm-lock.yaml ./
11- COPY frontend/public ./public
12- COPY frontend/dist ./dist
8+ COPY . .
139
14- RUN pnpm install --prod
10+ RUN pnpm install --prod --force
1511
1612FROM node:22.12-alpine3.20 AS runner
1713
18- RUN apk --no-cache add curl
19- RUN curl -sfS https://dotenvx.sh/install.sh | sh
20-
2114WORKDIR /usr/src/app
2215
2316COPY --from=deps /usr/bin/pnpm /usr/bin/
24- COPY --from=deps /usr/src/app/.env.production ./
2517COPY --from=deps /usr/src/app/node_modules ./node_modules
2618COPY --from=deps /usr/src/app/public ./public
2719COPY --from=deps /usr/src/app/dist ./dist
Original file line number Diff line number Diff line change 1+ name : instructor-local-dev
2+ version : " 3.8"
3+ services :
4+ frontend :
5+ build :
6+ context : ../frontend
7+ dockerfile : ../docker/Dockerfile.frontend
8+ ports :
9+ - " 3001:3000"
10+ depends_on :
11+ - backend
12+ networks :
13+ - app-network
14+
15+ backend :
16+ build :
17+ context : ../http
18+ dockerfile : ../docker/Dockerfile.backend
19+ ports :
20+ - " 3333:3333"
21+ networks :
22+ - app-network
23+
24+ networks :
25+ app-network :
26+ driver : bridge
Original file line number Diff line number Diff line change 1- <!doctype html>
1+ <!DOCTYPE html>
22< html lang ="en " class ="light ">
33 < head >
44 < meta charset ="UTF-8 " />
Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ function ErrorDisplay({
66 error ?: Error ;
77 resetErrorBoundary ?: ( ) => void ;
88} ) {
9+ const displayError =
10+ error ?? Object ( error ) . response ?. data ?? "Unknown error!" ;
911 return (
1012 < div role = "alert" >
1113 < p > Something went wrong:</ p >
12- < pre style = { { color : "red" } } > { error . message } </ pre >
14+ < pre style = { { color : "red" } } > { JSON . stringify ( displayError ) } </ pre >
1315 </ div >
1416 ) ;
1517}
Original file line number Diff line number Diff line change 11import { use } from "react" ;
2- import { client } from "../../.. /lib/http" ;
2+ import { client } from "@ /lib/http" ;
33
44const promise = client . get ( "/" ) ;
55
Original file line number Diff line number Diff line change 1- "use client" ;
2-
31import { Suspense } from "react" ;
42import Component from "./component" ;
53
Original file line number Diff line number Diff line change 11@import "tailwindcss" ;
22@import "./fonts.css" ;
3- @import "tailwind/preflight" ;
43
54@tailwind utilities;
65
Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ import axios from "axios";
33export const client = axios . create ( {
44 method : "GET" ,
55 baseURL : "http://localhost:3333" ,
6- headers : { "Access-Control-Allow-Origin" : "*" } ,
76} ) ;
You can’t perform that action at this time.
0 commit comments