Skip to content

Commit

Permalink
Fix: playwright failures
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimLyon committed Oct 16, 2024
1 parent d0a9ff5 commit 56603cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 1 addition & 5 deletions app/routes/_auth+/auth.$provider.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { redirect, type ActionFunctionArgs } from '@remix-run/node'
import { type ActionFunctionArgs } from '@remix-run/node'
import { authenticator } from '#app/utils/auth.server.ts'
import { handleMockAction } from '#app/utils/connections.server.ts'
import { ProviderNameSchema } from '#app/utils/connections.tsx'
import { getReferrerRoute } from '#app/utils/misc.tsx'
import { getRedirectCookieHeader } from '#app/utils/redirect-cookie.server.ts'

export async function loader() {
return redirect('/login')
}

export async function action({ request, params }: ActionFunctionArgs) {
const providerName = ProviderNameSchema.parse(params.provider)

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import 'dotenv/config'
import * as fs from 'node:fs'

//import { installGlobals } from '@remix-run/node'
import sourceMapSupport from 'source-map-support'
//installGlobals({ nativeFetch: true })

sourceMapSupport.install({
retrieveSourceMap: function (source) {
Expand Down
3 changes: 0 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { vitePlugin as remix } from '@remix-run/dev'
import { installGlobals } from '@remix-run/node'
import { sentryVitePlugin } from '@sentry/vite-plugin'
import { glob } from 'glob'
import { flatRoutes } from 'remix-flat-routes'
Expand All @@ -12,8 +11,6 @@ declare module '@remix-run/server-runtime' {
}
}

installGlobals({ nativeFetch: true })

const MODE = process.env.NODE_ENV

export default defineConfig({
Expand Down

0 comments on commit 56603cc

Please sign in to comment.