Skip to content

Commit 2bdbef5

Browse files
authored
chore: rename admin to webapp (#39)
* chore: rename admin to webapp * chore: add ts expect error due to zod v4 issues
1 parent 0f6eb67 commit 2bdbef5

File tree

130 files changed

+31
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+31
-30
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /app
99

1010
# Copy package files
1111
COPY pnpm-lock.yaml package.json pnpm-workspace.yaml turbo.json ./
12-
COPY apps/admin/package.json ./apps/admin/
12+
COPY apps/webapp/package.json ./apps/webapp/
1313
COPY packages/attribution-script/package.json ./packages/attribution-script/
1414
COPY packages/coredb/package.json ./packages/coredb/
1515
COPY packages/eslint-config/package.json ./packages/eslint-config/
@@ -18,20 +18,20 @@ COPY packages/types/package.json ./packages/types/
1818
COPY packages/typescript-config/package.json ./packages/typescript-config/
1919
COPY packages/ui/package.json ./packages/ui/
2020

21-
# Install dependencies only for admin app and its dependencies
22-
RUN pnpm install --frozen-lockfile --filter @refref/admin... --ignore-scripts
21+
# Install dependencies only for webapp app and its dependencies
22+
RUN pnpm install --frozen-lockfile --filter @refref/webapp... --ignore-scripts
2323

2424
# Copy source code (excluding www)
25-
COPY apps/admin ./apps/admin
25+
COPY apps/webapp ./apps/webapp
2626
COPY packages ./packages
2727

2828
# Run postinstall scripts now that source files are available
29-
RUN pnpm install --frozen-lockfile --filter @refref/admin...
29+
RUN pnpm install --frozen-lockfile --filter @refref/webapp...
3030

31-
# Build the admin application (with placeholder env vars for build time)
31+
# Build the webapp application (with placeholder env vars for build time)
3232
ENV DATABASE_URL="postgresql://placeholder"
3333
ENV BETTER_AUTH_SECRET="placeholder-secret-for-build"
34-
RUN pnpm build --filter @refref/admin...
34+
RUN pnpm build --filter @refref/webapp...
3535

3636
# Production stage
3737
FROM node:24-alpine AS runner
@@ -43,7 +43,7 @@ WORKDIR /app
4343

4444
# Copy necessary files from builder
4545
COPY --from=builder /app/node_modules ./node_modules
46-
COPY --from=builder /app/apps/admin ./apps/admin
46+
COPY --from=builder /app/apps/webapp ./apps/webapp
4747
COPY --from=builder /app/packages ./packages
4848
COPY --from=builder /app/package.json ./package.json
4949
COPY --from=builder /app/pnpm-workspace.yaml ./pnpm-workspace.yaml
@@ -57,5 +57,5 @@ ENV NODE_ENV=production
5757
EXPOSE 3000
5858

5959
# Start the application
60-
WORKDIR /app/apps/admin
60+
WORKDIR /app/apps/webapp
6161
CMD ["pnpm", "start"]

README.md

Lines changed: 10 additions & 10 deletions

apps/admin/.env.example renamed to apps/webapp/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RefRef Admin Portal Environment Variables
1+
# RefRef Webapp Environment Variables
22
# ==========================================
33
# Copy this file to .env and fill in your values
44

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)