Skip to content

Commit

Permalink
Merge branch 'main' of github.com:TooTallNate/nx.js into bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jul 3, 2024
2 parents c032a8c + d707087 commit f6834a4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/tests/src/storage.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { suite } from 'uvu';
import * as assert from 'uvu/assert';

// Set the current profile to the first profile
// so that the profile selector is not shown
const firstProfile = Array.from(Switch.Profile)[0];
Switch.Profile.current = firstProfile;

const test = suite('Storage');
const storage = localStorage;

Expand Down
24 changes: 24 additions & 0 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@ const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
redirects() {
return [
{
statusCode: 301,
source: '/tests/redirect/301',
destination: 'https://dump.n8.io',
},
{
statusCode: 302,
source: '/tests/redirect/302',
destination: 'https://dump.n8.io',
},
{
statusCode: 307,
source: '/tests/redirect/307',
destination: 'https://dump.n8.io',
},
{
statusCode: 308,
source: '/tests/redirect/308',
destination: 'https://dump.n8.io',
},
];
},
};

export default withMDX(config);

0 comments on commit f6834a4

Please sign in to comment.