Skip to content

Commit 93a197b

Browse files
authored
migrate to next.js (#3)
* initial next and shadcn setup * complete migration * remove unnecessary files * fix: image * refactor UI for left sidebar * fix: resource path
1 parent f1dbfe5 commit 93a197b

File tree

186 files changed

+6717
-22308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+6717
-22308
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
.next

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": false,
6+
"tailwind": {
7+
"config": "tailwind.config.js",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

jsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"compilerOptions": {
3+
"paths": {
4+
"@/*": ["./src/*"]
5+
}
6+
}
7+
}

next.config.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// @type {import('next').NextConfig}
2+
const nextConfig = {
3+
images: {
4+
unoptimized: true
5+
},
6+
output: 'export', // Outputs a Single-Page Application (SPA).
7+
distDir: './build', // Changes the build output directory to `./dist`.
8+
assetPrefix: '/AlgorithmVisualizer',
9+
basePath: '/AlgorithmVisualizer',
10+
}
11+
12+
export default nextConfig;

0 commit comments

Comments
 (0)