Skip to content

Commit

Permalink
FEAT: v0.5-beta
Browse files Browse the repository at this point in the history
Admin dash, custom server, and other things:
- start admin dash
- use a custom nextjs server (no more next-ws)
- webmanifest
- use db transactions
- bundle analyzer
- use swr for session fetching
- other unknown things that i forgot about.
  • Loading branch information
IncognitoTGT committed May 8, 2024
1 parent ee7702e commit 73d9865
Show file tree
Hide file tree
Showing 43 changed files with 2,061 additions and 494 deletions.
13 changes: 0 additions & 13 deletions .vscode/css_custom_data.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/extensions.json

This file was deleted.

13 changes: 9 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check
import NextBundleAnalyzer from "@next/bundle-analyzer";
import { execSync } from "node:child_process";
await import("next-ws/server/index.js").then((m) => m.verifyPatch());
const withBundleAnalyzer = NextBundleAnalyzer();
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
Expand All @@ -14,12 +15,13 @@ const nextConfig = {
],
},
env: {
GIT_COMMIT: execSync("git rev-parse HEAD").toString().trim(),
GIT_COMMIT: process.env.NODE_ENV === "production" ? execSync("git rev-parse HEAD").toString().trim() : "DEVELOP",
BUILD_DATE: Date.now().toString(),
},
experimental: {
typedRoutes: true,
instrumentationHook: true,
webpackBuildWorker: true,
serverActions: {
allowedOrigins: ["localhost:3000", "*.use.devtunnels.ms"],
},
Expand All @@ -41,5 +43,8 @@ const nextConfig = {
return config;
},
};

export default nextConfig;
let config = nextConfig;
if (process.env.ANALYZE) {
config = withBundleAnalyzer(nextConfig);
}
export default config;
20 changes: 12 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{
"name": "stardust",
"version": "0.5.0-alpha",
"version": "0.5.0-beta",
"private": true,
"type": "module",
"scripts": {
"dev": "next dev",
"dev": "tsx server.ts",
"build": "next build",
"start": "next start",
"start": "NODE_ENV=production tsx server.ts",
"lint": "biome lint --apply .",
"format": "biome format --write .",
"drizzle-kit": "drizzle-kit",
"db:push": "drizzle-kit push:pg",
"postinstall": "pnpm dlx next-ws-cli@latest patch"
"db:push": "drizzle-kit push:pg"
},
"dependencies": {
"@next/bundle-analyzer": "^14.2.3",
"@novnc/novnc": "^1.4.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-context-menu": "^2.1.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand All @@ -32,29 +33,33 @@
"@radix-ui/react-switch": "^1.0.3",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@tanstack/react-table": "^8.16.0",
"@types/dockerode": "^3.3.26",
"@types/ws": "^8.5.10",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"consola": "^3.2.3",
"dockerode": "^4.0.2",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.30.4",
"lucide-react": "^0.358.0",
"next": "14.2.3",
"next-auth": "4.24.7",
"next-themes": "^0.3.0",
"next-ws": "^1.0.1",
"node-loader": "^2.0.0",
"pg": "^8.11.3",
"pg-native": "^3.0.1",
"postgres": "^3.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"server-only": "^0.0.1",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
"swr": "^2.2.5",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
"ws": "^8.16.0"
"tsx": "^4.9.1",
"ws": "^8.17.0"
},
"devDependencies": {
"@biomejs/biome": "1.7.0",
Expand All @@ -63,7 +68,6 @@
"@types/pg": "^8.11.4",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"@types/ws": "^8.5.10",
"autoprefixer": "^10.4.19",
"drizzle-kit": "^0.20.17",
"postcss": "^8.4.38",
Expand Down
Loading

0 comments on commit 73d9865

Please sign in to comment.