Skip to content

Commit 7155646

Browse files
committed
redirect experiments/next to production
1 parent 4fd8405 commit 7155646

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/server.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,19 +161,14 @@ app.use((req, res, next) => {
161161
if (
162162
branchName === 'unsandboxed-extensions' ||
163163
branchName === 'return' ||
164-
branchName === 'merge-upstream'
164+
branchName === 'merge-upstream' ||
165+
branchName === 'next'
165166
) {
166167
const search = url.parse(req.url).search;
167168
res.redirect(`https://turbowarp.org${branchRelativePath}${search || ''}`);
168169
return;
169170
}
170171

171-
if (branchName === 'next') {
172-
const search = url.parse(req.url).search;
173-
res.redirect(`https://staging.turbowarp.org${branchRelativePath}${search || ''}`);
174-
return;
175-
}
176-
177172
req.branchPrefix = prefix;
178173
req.branchRelativePath = branchRelativePath;
179174
} else {

test/transitional-redirects.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,5 @@ it('next: redirects', async () => {
8282
const req = await request.get('/next/editor?fps=60')
8383
.set('Host', 'notlocalhost')
8484
.expect(302);
85-
expect(req.headers['location']).toBe('https://staging.turbowarp.org/editor?fps=60');
85+
expect(req.headers['location']).toBe('https://turbowarp.org/editor?fps=60');
8686
});

0 commit comments

Comments
 (0)