Skip to content

Commit

Permalink
Merge pull request #4244 from serlo/hotdeploy-injection-fix
Browse files Browse the repository at this point in the history
Deploy: fix(editor): update injection url for production
  • Loading branch information
elbotho authored Nov 4, 2024
2 parents c906034 + 2c8f6f7 commit add2906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/plugins/injection/static.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import { useEffect, useState } from 'react'
function getBase(currentHost: string) {
if (currentHost.endsWith('serlo-staging.dev'))
return 'https://de.serlo-staging.dev'
if (currentHost.endsWith('serlo.org')) return 'https://' + currentHost

return process.env.NODE_ENV === 'development'
? 'http://localhost:3000'
: 'https://serlo.org'
: 'https://de.serlo.org'
}

export function InjectionStaticRenderer({
Expand Down

0 comments on commit add2906

Please sign in to comment.