Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deploy-web): fix localstorage auto-import url #199

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-stats-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Stats Web CI

on:
push:
branches: ["main", "collab-rebrand"]
branches: ["main"]
pull_request:
branches: ["main", "collab-rebrand"]
branches: ["main"]

jobs:
build:
Expand Down
9 changes: 4 additions & 5 deletions deploy-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM node:18 AS base
# Pinned to 3.18 to avoid this issue: https://github.com/nodejs/docker-node/issues/2009

# Install dependencies only when needed
FROM base AS deps
Expand Down Expand Up @@ -51,10 +50,10 @@ RUN setcap cap_net_bind_service=+ep `readlink -f \`which node\``

USER nextjs

EXPOSE 3001
# EXPOSE 80
#EXPOSE 3001
EXPOSE 80

ENV PORT 3001
# ENV PORT 80
#ENV PORT 3001
ENV PORT 80

CMD ["node", "server.js"]
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export function SettingsProvider({ children }: React.PropsWithChildren<{}>) {
{children}

{/* iframe for localstorage automatic import */}
{isSettingsInit && <iframe ref={iframeRef} className="hidden" src={`${autoImportOrigin}/standalone/localstorage-import`} width={0} height={0} />}
{isSettingsInit && <iframe ref={iframeRef} className="hidden" src={`${autoImportOrigin}/standalone/localstorage-export`} width={0} height={0} />}
</SettingsProviderContext.Provider>
);
}
Expand Down
Loading