-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Olga Bulat <[email protected]> Co-authored-by: sarayourfriend <[email protected]>
- Loading branch information
1 parent
dff3a85
commit faf599b
Showing
419 changed files
with
15,520 additions
and
27,806 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
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
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 |
---|---|---|
|
@@ -61,8 +61,8 @@ repos: | |
# Must include any plugins defined in prettier.config.js, along with TypeScript and Prettier themselves | ||
# Versions must be manually kept in sync with those in the pnpm-lock.yaml file to prevent drift. | ||
additional_dependencies: | ||
- prettier@3.2.5 | ||
- prettier-plugin-tailwindcss@0.5.14 | ||
- prettier@3.3.2 | ||
- prettier-plugin-tailwindcss@0.6.5 | ||
- [email protected] | ||
|
||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
|
@@ -119,7 +119,7 @@ repos: | |
- id: types | ||
name: types | ||
files: ^(frontend|packages/js)/.*$ | ||
entry: bash -c 'pnpm run -r types' | ||
entry: bash -c 'pnpm run prepare:nuxt && pnpm run -r types' | ||
language: system | ||
pass_filenames: false | ||
|
||
|
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
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,3 +1,58 @@ | ||
#API_URL=http://127.17.0.1:8000/ | ||
#API_CLIENT_ID="" | ||
#API_CLIENT_SECRET="" | ||
PORT=8443 | ||
|
||
# ---------------------------- # | ||
# REQUIRED LOCAL ENV VARIABLES # | ||
# ---------------------------- # | ||
# DEPLOYMENT_ENV=local | ||
# SITE_DOMAIN=localhost | ||
# SITE_URL=http://localhost:8443 | ||
#/** | ||
#* We rely on the Nginx container running as `frontend_nginx` | ||
#* in the local compose stack to proxy requests. Therefore, the | ||
#* URL here is not for the Plausible container in the local stack, | ||
#* but the Nginx service, which then itself forwards the requests | ||
#* to the local Plausible instance. | ||
#* | ||
#* In production, the Nginx container is handling all requests | ||
#* made to the root URL (openverse.org), and is configured to | ||
#* forward Plausible requests to upstream Plausible. | ||
#*/ | ||
# PLAUSIBLE_SITE_URL = http://localhost:50290 | ||
|
||
# ---------------------------- # | ||
# OPTIONAL LOCAL ENV VARIABLES | ||
# ---------------------------- # | ||
### API settings | ||
|
||
# NUXT_PUBLIC_API_URL=http://127.17.0.1:8000/ # local dev API | ||
# NUXT_PUBLIC_API_URL=http://localhost:49153/ # talkback proxy | ||
# NUXT_PUBLIC_API_URL=https://api.openverse.org/# prod API | ||
|
||
# NUXT_API_CLIENT_ID="" | ||
# NUXT_API_CLIENT_SECRET="" | ||
|
||
# -------------------- # | ||
# PRODUCTION VARIABLES # | ||
# -------------------- # | ||
# DEPLOYMENT_ENV=production | ||
# NUXT_API_CLIENT_ID="" | ||
# NUXT_API_CLIENT_SECRET="" | ||
# NUXT_PUBLIC_API_URL=https://api.openverse.org/ | ||
# NUXT_PUBLIC_SENTRY_DSN="" | ||
# NUXT_PUBLIC_SENTRY_RELEASE="" | ||
# SITE_URL=https://openverse.org | ||
# SITE_DOMAIN=openverse.org | ||
# PLAUSIBLE_SITE_URL=https://openverse.org | ||
|
||
# ----------------- # | ||
# STAGING VARIABLES # | ||
# ----------------- # | ||
# DEPLOYMENT_ENV=staging | ||
# NUXT_API_CLIENT_ID="" | ||
# NUXT_API_CLIENT_SECRET="" | ||
# NUXT_PUBLIC_API_URL=https://api-staging.openverse.org/ | ||
# NUXT_PUBLIC_SENTRY_DSN="" | ||
# NUXT_PUBLIC_SENTRY_RELEASE="" | ||
# SITE_URL=https://staging.openverse.org | ||
# SITE_DOMAIN=staging.openverse.org | ||
# PLAUSIBLE_SITE_URL=https://staging.openverse.org |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,8 +20,7 @@ WORKDIR /home/node/ | |
# Copy monorepo mocking files into `/home/node`, which pretends to be the monorepo root. | ||
# Note: these files must be manually un-ignored in the root .dockerignore | ||
# hadolint ignore=DL3022 | ||
COPY --from=repo_root --chown=node:node .npmrc .pnpmfile.cjs pnpm-lock.yaml tsconfig.base.json ./ | ||
|
||
COPY --from=repo_root --chown=node:node .npmrc .pnpmfile.cjs pnpm-lock.yaml ./ | ||
RUN echo '{"packages":["frontend/"]}' > pnpm-workspace.yaml | ||
|
||
# Copy the `frontend/` directory into `/home/node/frontend`, as a package in the monorepo. | ||
|
@@ -40,9 +39,12 @@ RUN pnpm install && pnpm i18n | |
# disable telemetry when building the app | ||
ENV NUXT_TELEMETRY_DISABLED=1 | ||
ENV NODE_ENV=production | ||
ENV SENTRY_DSN=https://[email protected]/5799642 | ||
ENV NUXT_PUBLIC_SENTRY_DSN=https://[email protected]/5799642 | ||
|
||
ARG API_URL | ||
ARG API_URL=https://api.openverse.org/ | ||
ENV NUXT_PUBLIC_API_URL=$API_URL | ||
# Increase memory limit for the build process (necessary for i18n routes) | ||
ENV NODE_OPTIONS="--max_old_space_size=4096" | ||
|
||
RUN pnpm build | ||
|
||
|
@@ -67,7 +69,12 @@ COPY --from=builder --chown=node:node /home/node/frontend ./frontend/ | |
WORKDIR /home/node/frontend/ | ||
|
||
ARG SEMANTIC_VERSION | ||
ENV SENTRY_RELEASE=$SEMANTIC_VERSION | ||
ARG DEPLOYMENT_ENV=production | ||
ARG API_URL=https://api.openverse.org/ | ||
|
||
ENV NUXT_PUBLIC_API_URL=$API_URL | ||
ENV NUXT_PUBLIC_SENTRY_RELEASE=$SEMANTIC_VERSION | ||
ENV NUXT_PUBLIC_SENTRY_ENVIRONMENT=$DEPLOYMENT_ENV | ||
|
||
# set app serving to permissive / assigned | ||
ENV NUXT_HOST=0.0.0.0 | ||
|
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
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
Oops, something went wrong.