Skip to content

Commit

Permalink
fix(deploy-web): fix localstorage auto-import url
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed May 15, 2024
1 parent d9a7e40 commit e5cfc7e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
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

0 comments on commit e5cfc7e

Please sign in to comment.