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

Add auth && vary region #56

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add auth && vary region #56

wants to merge 3 commits into from

Conversation

SoyZhou
Copy link
Contributor

@SoyZhou SoyZhou commented Oct 6, 2023

Enable Auth

  1. No auth

No addition environment variables required.

  1. Code
NEXT_PUBLIC_AUTH_PROVIDER=code
NEXT_PUBLIC_AUTH_CODE=123456

Input auth code to launch app
codelogin

  1. Netlify
export NEXT_PUBLIC_AUTH_PROVIDER=netlify

Need open netlify identity on netlify.

Enable Vary Region

varyregion 1. Local setting ```bash # for macOS export PUPPETEER_CHROME_BIN="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

for windows (Depends on your installation path)

export PUPPETEER_CHROME_BIN="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"


2. Docker

Add the follow content into `Dockerfile`, and rebuild docker image:
```Dockerfile
RUN apk add -q --update --no-cache \
      chromium \
      nss \
      freetype \
      freetype-dev \
      harfbuzz \
      ca-certificates \
      ttf-freefont

ENV PUPPETEER_CHROME_BIN="/usr/bin/chromium-browser"
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
  1. Netlify

Since the function has a 10s limit, it can't be called successfully.

SoyZhou and others added 3 commits October 6, 2023 10:07
* feature: custom zoom & auth

* fix: update next version for netlify

* fix: netilify

* fix: react version

* fix: netlify

* feature: vary region

* update: puppeteer

* fix: puppeteer
@netlify
Copy link

netlify bot commented Oct 6, 2023

👷 Deploy request for midjourneyui pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit d1cc0bd

@vercel
Copy link

vercel bot commented Oct 6, 2023

@SoyZhou is attempting to deploy a commit to the erictik Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant