Deploying @auth/sveltekit to Cloudflare errors with [next-auth][error][UNTRUST_HOST_ERROR] #6071
Answered
by
theetherGit
alesvaupotic
asked this question in
Help
-
Hi! Which ENV vars should I set to run from other provider than Vercel? The message is "message": [
"[next-auth][error][UNTRUST_HOST_ERROR]",
"\nhttps://next-auth.js.org/errors#untrust_host_error",
"Host must be trusted. URL was: https://skauth.pages.dev/api/auth/session",
{
"name": "UntrustedHost",
"message": "Host must be trusted. URL was: https://skauth.pages.dev/api/auth/session",
"stack": "UntrustedHost: Host must be trusted. URL was: https://skauth.pages.dev/api/auth/session\n at AuthHandler (worker.mjs:7304:20)\n at getSession (worker.mjs:7406:26)\n at getSession._a.getSession (worker.mjs:7419:62)\n at load (worker.mjs:9922:37)\n at load_server_data (worker.mjs:7920:42)\n at worker.mjs:8746:24"
}
], Vercel deploy works as expected. |
Beta Was this translation helpful? Give feedback.
Answered by
theetherGit
Dec 15, 2022
Replies: 1 comment 20 replies
-
AUTH_TRUST_HOST you can add this in your env file. |
Beta Was this translation helpful? Give feedback.
20 replies
Answer selected by
alesvaupotic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AUTH_TRUST_HOST you can add this in your env file.