Skip to content

Commit

Permalink
chore(web): Always generate edit notes with permalinks
Browse files Browse the repository at this point in the history
The original thought was not to seed edit notes with localhost URLs, but
this can also happen with a local production server, not only with a
development server.
It is rather useful being able to check the permalinks in development.
  • Loading branch information
kellnerd authored and mwiencek committed May 28, 2024
1 parent a44d3f0 commit 194a833
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/routes/release.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import { LookupError, type ProviderError } from '@/utils/errors.ts';
const seederTargetUrl = new URL('release/add', musicbrainzBaseUrl);

export default defineRoute(async (req, ctx) => {
// Only set seeder URL (used for permalinks) in production servers.
const seederSourceUrl = ctx.config.dev ? undefined : ctx.url;
const seederSourceUrl = ctx.url;
const errors: Error[] = [];
let release: HarmonyRelease | undefined;
let enabledProviders: Set<string> | undefined = undefined;
Expand Down

0 comments on commit 194a833

Please sign in to comment.