Skip to content

Commit 50a7781

Browse files
committed
qa: rename static directory
1 parent 007fb9a commit 50a7781

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ jobs:
331331
- ./apps/web/.next/standalone
332332
- ./apps/web/.next/static
333333
- ./apps/web/public
334-
- ./apps/web/static
334+
- ./apps/web/private-static
335335

336336
chromatic:
337337
executor: node
@@ -422,7 +422,7 @@ jobs:
422422
command: |
423423
mv apps/web/.next/standalone ~/dist
424424
mv apps/web/public ~/dist/apps/web/public
425-
mv apps/web/static ~/dist/apps/web/static
425+
mv apps/web/private-static ~/dist/apps/web/private-static
426426
mv apps/web/.next/static ~/dist/apps/web/.next/static
427427
cd ~/dist
428428
NODE_TLS_REJECT_UNAUTHORIZED="0" HOSTNAME=localhost node apps/web/server.js
File renamed without changes.

apps/web/src/staticDirectory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getDirname } from '@app/config/dirname'
33

44
export const staticDirectory = path.resolve(
55
getDirname(import.meta.url),
6-
'../static',
6+
'../private-static',
77
)
88

99
export const staticFile = (filename: string) =>

docker/web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ COPY apps/web/.next/standalone .
1616
# Copy public assets
1717
COPY apps/web/public ./apps/web/public
1818

19-
# Copy static files (csv, json, etc...)
20-
COPY apps/web/static ./apps/web/static
19+
# Copy static server files not imported by bundler (csv, json, etc...)
20+
COPY apps/web/private-static ./apps/web/private-static
2121

2222
# Copy static built assets (js and css)
2323
COPY apps/web/.next/static ./apps/web/.next/static

0 commit comments

Comments
 (0)