-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55cb083
commit 6999bd0
Showing
38 changed files
with
2,391 additions
and
1,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Dependency directories | ||
node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Testing | ||
/coverage | ||
|
||
# Production | ||
/build | ||
|
||
# Misc | ||
.DS_Store | ||
*.pem | ||
|
||
# Debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Local env files | ||
.env*.local | ||
|
||
# Vercel | ||
.vercel | ||
|
||
# TypeScript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# IDE/Editor folders | ||
.idea | ||
.vscode | ||
|
||
# OS generated files | ||
Thumbs.db | ||
|
||
# Temporary files | ||
*.swp | ||
*.swo | ||
|
||
# Git related | ||
.git | ||
.gitignore | ||
|
||
# Docker related | ||
Dockerfile | ||
.dockerignore | ||
|
||
# Other | ||
README.md | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
FROM node:20.15.1-slim | ||
WORKDIR /data | ||
COPY . . | ||
RUN npm install | ||
CMD [ "/bin/bash -c 'npm run dev'" ] | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
FROM node:20 AS builder | ||
|
||
WORKDIR /app | ||
|
||
COPY ./src/flagd-ui/package*.json ./ | ||
|
||
RUN npm ci | ||
|
||
COPY ./src/flagd-ui/. ./ | ||
|
||
RUN npm run build | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
FROM node:20-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY ./src/flagd-ui/package*.json ./ | ||
|
||
RUN npm ci --only=production | ||
|
||
COPY --from=builder /app/src/instrumentation.ts ./instrumentation.ts | ||
COPY --from=builder /app/next.config.mjs ./next.config.mjs | ||
|
||
COPY --from=builder /app/.next ./.next | ||
|
||
EXPOSE 4000 | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
experimental: { | ||
instrumentationHook: true, | ||
}, | ||
basePath: "/feature", | ||
}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.