Skip to content

Commit

Permalink
fix: output standalone
Browse files Browse the repository at this point in the history
Signed-off-by: Homing So <[email protected]>
  • Loading branch information
hominsu committed Jul 24, 2024
1 parent 4653823 commit 33d5add
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:
run: >
REPO=${{ matrix.registry.push_link }}
VERSION=${{ needs.set-matrix.outputs.git_tag }}
EXPORT=${{ secrets.EXPORT }}
NEXT_ALGOLIA_APIKEY=${{ secrets.NEXT_ALGOLIA_APIKEY }}
NEXT_ALGOLIA_APPID=${{ secrets.NEXT_ALGOLIA_APPID }}
NEXT_ALGOLIA_INDEX_NAME=${{ secrets.NEXT_ALGOLIA_INDEX_NAME }}
Expand Down
4 changes: 1 addition & 3 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ COPY . .

ENV NEXT_TELEMETRY_DISABLED 1

RUN --mount=type=secret,id=EXPORT \
--mount=type=secret,id=NEXT_ALGOLIA_APIKEY \
RUN --mount=type=secret,id=NEXT_ALGOLIA_APIKEY \
--mount=type=secret,id=NEXT_ALGOLIA_APPID \
--mount=type=secret,id=NEXT_ALGOLIA_INDEX_NAME \
--mount=type=secret,id=NEXT_PUBLIC_GISCUS_CATEGORY \
--mount=type=secret,id=NEXT_PUBLIC_GISCUS_CATEGORY_ID \
--mount=type=secret,id=NEXT_PUBLIC_GISCUS_REPO \
--mount=type=secret,id=NEXT_PUBLIC_GISCUS_REPOSITORY_ID \
--mount=type=secret,id=NEXT_UMAMI_ID \
EXPORT=$(cat /run/secrets/EXPORT) \
NEXT_ALGOLIA_APIKEY=$(cat /run/secrets/NEXT_ALGOLIA_APIKEY) \
NEXT_ALGOLIA_APPID=$(cat /run/secrets/NEXT_ALGOLIA_APPID) \
NEXT_ALGOLIA_INDEX_NAME=$(cat /run/secrets/NEXT_ALGOLIA_INDEX_NAME) \
Expand Down
1 change: 0 additions & 1 deletion deploy/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ target "blog" {
VERSION = "$(VERSION)"
}
secret = [
"type=env,id=EXPORT",
"type=env,id=NEXT_ALGOLIA_APIKEY",
"type=env,id=NEXT_ALGOLIA_APPID",
"type=env,id=NEXT_ALGOLIA_INDEX_NAME",
Expand Down
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const articleMapping = new Map([
['d6e69539', 'other/trust-project-env.mdx'],
])

const output = process.env.EXPORT ? 'export' : undefined
const output = process.env.EXPORT ? 'export' : 'standalone'
const basePath = process.env.BASE_PATH || undefined
const unoptimized = process.env.UNOPTIMIZED ? true : undefined

Expand Down

0 comments on commit 33d5add

Please sign in to comment.