Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Merge branch 'main' of github.com:webstudio-is/webstudio-designer into auth-small-fixes

Sara Vieiraa8c48ba97a73
diff --cc .github/workflows/main.yml
index 1141d374da,1141d374da..09beefa63a
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@@ -18,7 -18,7 +18,7 @@@ jobs
# uses: bahmutov/npm-install@v1
- run: yarn install
-- - name: Next.js cache
++ - name: Remix cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
diff --cc app/routes/login/index.tsx
index 697ccd044d,01938965a7..a53ac6668b
--- a/app/routes/login/index.tsx
+++ b/app/routes/login/index.tsx
@@@ -2,9 -2,9 +2,10 @@@ import { LoaderFunction, redirect } fro
import { authenticator } from "~/services/auth.server";
import config from "~/config";
+ import env from "~/env.server";
import { Login, links } from "~/auth/";
+import { useLoginErrors } from "~/shared/session/useLoginErrors";
export { links };
diff --cc app/services/auth.server.ts
index 09fd2c9ce6,352cad7334..770f82ea22
--- a/app/services/auth.server.ts
+++ b/app/services/auth.server.ts
@@@ -57,11 -58,22 +58,22 @@@ if (process.env.DEV_LOGIN === "true")
const secret = form.get("secret");
if (secret === process.env.AUTH_SECRET) {
- const user = await createOrLoginWithDev(secret);
- return user;
+ try {
+ const user = await createOrLoginWithDev(secret);
+ return user;
+ } catch (error: unknown) {
+ if (error instanceof Error) {
+ sentryException({
+ message: error.message,
+ extra: {
+ loginMethod: "dev",
+ },
+ });
+ }
+ }
}
- throw new Error("Wrong code");
+ throw new Error("The dev login code is incorrect");
}),
"dev"
);