mirror of
https://github.com/nimbusdotstorage/Nimbus
synced 2026-04-22 17:45:03 +02:00
ENNVVVVVVVVV
This commit is contained in:
@@ -38,8 +38,8 @@ BACKEND_URL=http://localhost:1284
|
||||
TRUSTED_ORIGINS=http://localhost:3000
|
||||
|
||||
# URLs for Next.js client side
|
||||
VITE_PUBLIC_BACKEND_URL=http://localhost:1284
|
||||
VITE_PUBLIC_FRONTEND_URL=http://localhost:3000
|
||||
VITE_BACKEND_URL=http://localhost:1284
|
||||
VITE_FRONTEND_URL=http://localhost:3000
|
||||
|
||||
# Database. Make sure the user, password, and database name match the ones in the url
|
||||
DATABASE_URL=postgres://postgres:postgres@localhost:5432/nimbus
|
||||
|
||||
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
@@ -175,8 +175,8 @@ jobs:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
NODE_ENV: ${{ secrets.NODE_ENV }}
|
||||
VITE_PUBLIC_BACKEND_URL: ${{ secrets.VITE_PUBLIC_BACKEND_URL }}
|
||||
VITE_PUBLIC_FRONTEND_URL: ${{ secrets.VITE_PUBLIC_FRONTEND_URL }}
|
||||
VITE_BACKEND_URL: ${{ secrets.VITE_BACKEND_URL }}
|
||||
VITE_FRONTEND_URL: ${{ secrets.VITE_FRONTEND_URL }}
|
||||
run: |
|
||||
cd apps/web
|
||||
bun run cf:build
|
||||
|
||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -58,8 +58,8 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/nimbus-test
|
||||
VITE_PUBLIC_BACKEND_URL: http://localhost:1284
|
||||
VITE_PUBLIC_FRONTEND_URL: http://localhost:3000
|
||||
VITE_BACKEND_URL: http://localhost:1284
|
||||
VITE_FRONTEND_URL: http://localhost:3000
|
||||
run: bun run build
|
||||
|
||||
- name: Create coverage badge
|
||||
|
||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -18,9 +18,7 @@ dist
|
||||
**/coverage-final.json
|
||||
**/coverage-summary.json
|
||||
|
||||
# next.js
|
||||
.next/
|
||||
out/
|
||||
.tanstack/
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
# Dependency directories
|
||||
**/node_modules/
|
||||
**/.next/
|
||||
**/dist/
|
||||
**/build/
|
||||
*package-lock.json
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
- Only do the minimum required changes to accomplish the stated task.
|
||||
- Only do the minimum required changes to accomplish the stated task
|
||||
- Do not write up a document at the end of your process
|
||||
- Do not edit any files under the /ui folder
|
||||
|
||||
@@ -40,8 +40,8 @@ Nimbus requires the following environment variables to work, some will be pre-fi
|
||||
- `WEB_PORT`
|
||||
- `BACKEND_URL`
|
||||
- `TRUSTED_ORIGINS`
|
||||
- `VITE_PUBLIC_BACKEND_URL`
|
||||
- `VITE_PUBLIC_FRONTEND_URL`
|
||||
- `VITE_BACKEND_URL`
|
||||
- `VITE_FRONTEND_URL`
|
||||
- `DATABASE_URL`
|
||||
- `DATABASE_HOST`
|
||||
- `POSTGRES_PORT`
|
||||
@@ -57,8 +57,8 @@ Nimbus requires the following environment variables to work, some will be pre-fi
|
||||
|
||||
- `EMAIL_FROM`
|
||||
- `RESEND_API_KEY`
|
||||
- `VITE_PUBLIC_POSTHOG_KEY`
|
||||
- `VITE_PUBLIC_POSTHOG_HOST`
|
||||
- `VITE_POSTHOG_KEY`
|
||||
- `VITE_POSTHOG_HOST`
|
||||
|
||||
### 3. Start Services
|
||||
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
# @nimbus/server
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 030752f: fix: 5.8.3 is preferred Typescript version rn fix: added error handling to filesWithTags. improved query
|
||||
consitency
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 45caeab: chore: add WRANGLER_DEV to .env.example chore: configure t3 env to switch NODE_ENV to production when
|
||||
WRANGLER_DEV is "true" chore: update auth.ts to throw on error chore: update server.ts to load env from hono context
|
||||
chore: update server.ts to include Cloudflare namespace types: Env, ExecutionContext
|
||||
- Updated dependencies [45caeab]
|
||||
- @nimbus/auth@0.0.4
|
||||
- @nimbus/env@0.0.3
|
||||
- @nimbus/cache@0.0.3
|
||||
- @nimbus/db@0.0.3
|
||||
- @nimbus/shared@0.0.4
|
||||
|
||||
## 0.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2efcc5a: chore: added better-auth on error handling for production (console.error(error, AuthContext) chore: added
|
||||
upstash vs valkey getter handling (upstash does not resturn string) chore: added wrangler dev, bun dev, and production
|
||||
runtime handling for server chore: context must be re-created (not a singleton) for edge runtime)
|
||||
- Updated dependencies [2efcc5a]
|
||||
- @nimbus/auth@0.0.3
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 03bb85d: chore: updated everything to latest except zod and Next.js (zod, tying errors, opennextjs-cloudflare only
|
||||
supports 15.3) CMD: find . -type f -name "package.json" -not -path "_/node_modules/_" -not -path "*/.*next/\*" -exec
|
||||
sh -c 'echo "\nUpdating $1/..." && (cd "$(dirname "$1")" && ncu -u)' \_ {} \; chore: revert zod upgrade as it breaks
|
||||
better-auth typing chore: zod broke better-auth typing again... chore: revert back to base sql chore: auth clean
|
||||
chore: FINALLY fixed schema.ts chore: reset migrations to current database state. removed the rateLimit table since we
|
||||
use cache now
|
||||
- c047c01: - Added a new handleUnauthorizedError utility function in client.ts for consistent error handling
|
||||
- Added an auth context system to manage sign-in state (easy to prompt for login when unauthorized)
|
||||
- Updated all frontend drive proctected routes (drives, files, tags)
|
||||
- Improved type inferring for tags in server by removing try catch blocks
|
||||
- Renamed default error to sendForbidden and reserved sendUnauthorized for out-of-date token
|
||||
- Fixed race condition in account-provider by removing unecessary setters and by adding a useRef
|
||||
- Updated dependencies [de391ed]
|
||||
- Updated dependencies [7ffde8d]
|
||||
- Updated dependencies [03bb85d]
|
||||
- @nimbus/db@0.0.2
|
||||
- @nimbus/auth@0.0.2
|
||||
- @nimbus/shared@0.0.3
|
||||
- @nimbus/env@0.0.2
|
||||
- @nimbus/cache@0.0.2
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1c1f4a3]
|
||||
- @nimbus/shared@0.0.2
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
- Updated dependencies [7e2271f]
|
||||
- @nimbus/shared@0.0.1
|
||||
- @nimbus/cache@0.0.1
|
||||
- @nimbus/auth@0.0.1
|
||||
- @nimbus/env@0.0.1
|
||||
- @nimbus/db@0.0.1
|
||||
@@ -1,84 +0,0 @@
|
||||
# @nimbus/web
|
||||
|
||||
## 0.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [030752f]
|
||||
- @nimbus/server@0.0.6
|
||||
|
||||
## 0.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- f5ea8ad: fix: type error web build chore: update deps wrangler cloudflare fix: remove onAccountAdded since it doesn't work as expected. needed to remove window reload since returning to the page is handled by OAuth callback
|
||||
|
||||
## 0.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b9d0d3f: feat: removed middleware.ts and create client side routing.
|
||||
|
||||
## 0.0.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [45caeab]
|
||||
- @nimbus/auth@0.0.4
|
||||
- @nimbus/env@0.0.3
|
||||
- @nimbus/server@0.0.5
|
||||
- @nimbus/shared@0.0.4
|
||||
|
||||
## 0.0.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [2efcc5a]
|
||||
- @nimbus/auth@0.0.3
|
||||
- @nimbus/server@0.0.4
|
||||
|
||||
## 0.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1ee7ea3: Claude attempted to fix more race conditions in web
|
||||
- 03bb85d: chore: updated everything to latest except zod and Next.js (zod, tying errors, opennextjs-cloudflare only supports 15.3) CMD: find . -type f -name "package.json" -not -path "_/node_modules/_" -not -path "*/.*next/\*" -exec sh -c 'echo "\nUpdating $1/..." && (cd "$(dirname "$1")" && ncu -u)' \_ {} \; chore: revert zod upgrade as it breaks better-auth typing chore: zod broke better-auth typing again... chore: revert back to base sql chore: auth clean chore: FINALLY fixed schema.ts chore: reset migrations to current database state. removed the rateLimit table since we use cache now
|
||||
- c047c01: - Added a new handleUnauthorizedError utility function in client.ts for consistent error handling
|
||||
- Added an auth context system to manage sign-in state (easy to prompt for login when unauthorized)
|
||||
- Updated all frontend drive proctected routes (drives, files, tags)
|
||||
- Improved type inferring for tags in server by removing try catch blocks
|
||||
- Renamed default error to sendForbidden and reserved sendUnauthorized for out-of-date token
|
||||
- Fixed race condition in account-provider by removing unecessary setters and by adding a useRef
|
||||
- Updated dependencies [7ffde8d]
|
||||
- Updated dependencies [03bb85d]
|
||||
- Updated dependencies [c047c01]
|
||||
- @nimbus/auth@0.0.2
|
||||
- @nimbus/shared@0.0.3
|
||||
- @nimbus/env@0.0.2
|
||||
- @nimbus/server@0.0.3
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 83b4c87: fixed legal pages and footer. mostly CSS.
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1c1f4a3: Added legal pages. Added legal constants. Grouped all constants in shared/constants/\*.
|
||||
- Updated dependencies [1c1f4a3]
|
||||
- @nimbus/shared@0.0.2
|
||||
- @nimbus/server@0.0.2
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
- Updated dependencies [7e2271f]
|
||||
- @nimbus/shared@0.0.1
|
||||
- @nimbus/auth@0.0.1
|
||||
- @nimbus/env@0.0.1
|
||||
- @nimbus/server@0.0.1
|
||||
@@ -2,11 +2,11 @@
|
||||
FROM oven/bun AS builder
|
||||
WORKDIR /app
|
||||
|
||||
ARG VITE_PUBLIC_BACKEND_URL
|
||||
ARG VITE_PUBLIC_FRONTEND_URL
|
||||
ARG VITE_BACKEND_URL
|
||||
ARG VITE_FRONTEND_URL
|
||||
|
||||
ENV VITE_PUBLIC_BACKEND_URL=${VITE_PUBLIC_BACKEND_URL}
|
||||
ENV VITE_PUBLIC_FRONTEND_URL=${VITE_PUBLIC_FRONTEND_URL}
|
||||
ENV VITE_BACKEND_URL=${VITE_BACKEND_URL}
|
||||
ENV VITE_FRONTEND_URL=${VITE_FRONTEND_URL}
|
||||
|
||||
# Copy package files for dependency installation
|
||||
COPY package.json bun.lock ./
|
||||
@@ -36,8 +36,8 @@ WORKDIR /app
|
||||
# Set environment variables
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
ENV VITE_PUBLIC_BACKEND_URL=${VITE_PUBLIC_BACKEND_URL}
|
||||
ENV VITE_PUBLIC_FRONTEND_URL=${VITE_PUBLIC_FRONTEND_URL}
|
||||
ENV VITE_BACKEND_URL=${VITE_BACKEND_URL}
|
||||
ENV VITE_FRONTEND_URL=${VITE_FRONTEND_URL}
|
||||
|
||||
# Create non-root user
|
||||
RUN groupadd -r nodejs && useradd -r -g nodejs nodejs
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
mkdir -p .next/build-start-folder
|
||||
|
||||
APP_ROOT=".next/build-start-folder"
|
||||
|
||||
# Copy contents of standalone to (app/web{.env, .next, server.js}, node_modules, package.json)
|
||||
cp -r .next/standalone/* $APP_ROOT
|
||||
|
||||
# Remove .env from .next/apps/web/.env
|
||||
rm $APP_ROOT/apps/web/.env
|
||||
|
||||
# Copy static to /app/.next
|
||||
mkdir -p $APP_ROOT/apps/web/.next
|
||||
cp -r .next/static $APP_ROOT/apps/web/.next/.
|
||||
|
||||
# Copy public to /app
|
||||
mkdir -p $APP_ROOT/apps/web
|
||||
cp -r public $APP_ROOT/apps/web/.
|
||||
@@ -8,10 +8,10 @@ import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { useForgotPassword } from "@/hooks/useAuth";
|
||||
import { ArrowLeft, Loader2 } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Link } from "@tanstack/react-router";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import type { ComponentProps } from "react";
|
||||
import Link from "next/link";
|
||||
|
||||
export function ForgotPasswordForm({ ...props }: ComponentProps<"div">) {
|
||||
const { isLoading, forgotPassword } = useForgotPassword();
|
||||
@@ -37,10 +37,10 @@ export function ForgotPasswordForm({ ...props }: ComponentProps<"div">) {
|
||||
<CardHeader className="overflow-x-hidden">
|
||||
<div className="-mx-6 flex flex-row items-center justify-start border-b">
|
||||
<Button className="cursor-pointer rounded-none px-6 py-6 font-semibold" variant="link" asChild>
|
||||
<Link href="/signin">
|
||||
<a href="/signin">
|
||||
<ArrowLeft />
|
||||
Back
|
||||
</Link>
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
<div className="gap-2 pt-6">
|
||||
@@ -85,7 +85,7 @@ export function ForgotPasswordForm({ ...props }: ComponentProps<"div">) {
|
||||
<CardFooter className="px-6 py-4">
|
||||
<p className="w-full text-center text-sm text-neutral-600">
|
||||
By continuing, you agree to our{" "}
|
||||
<Link href="/terms" className="cursor-pointer whitespace-nowrap underline underline-offset-4">
|
||||
<Link to="/terms" className="cursor-pointer whitespace-nowrap underline underline-offset-4">
|
||||
terms of service
|
||||
</Link>
|
||||
.
|
||||
|
||||
@@ -23,7 +23,7 @@ export function VerifyEmailContent({ ...props }: ComponentProps<"div">) {
|
||||
if (!token) return;
|
||||
setIsLoading(true);
|
||||
try {
|
||||
await axios.get(`${env.VITE_PUBLIC_BACKEND_URL}/api/auth/verify-email`, {
|
||||
await axios.get(`${import.meta.env.VITE_BACKEND_URL}/api/auth/verify-email`, {
|
||||
withCredentials: true,
|
||||
params: {
|
||||
token,
|
||||
|
||||
@@ -7,8 +7,8 @@ import posthog from "posthog-js";
|
||||
|
||||
export function PHProvider({ children }: { children: ReactNode }) {
|
||||
useEffect(() => {
|
||||
posthog.init(env.VITE_PUBLIC_POSTHOG_KEY, {
|
||||
api_host: env.VITE_PUBLIC_POSTHOG_HOST,
|
||||
posthog.init(import.meta.env.VITE_POSTHOG_KEY!, {
|
||||
api_host: import.meta.env.VITE_POSTHOG_HOST,
|
||||
capture_pageview: false, // Disable automatic pageview capture, as we capture manually
|
||||
defaults: "2025-05-24",
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ export function S3AccountForm({ onSuccess, onCancel }: S3AccountFormProps) {
|
||||
nickname: formData.nickname || null, // Ensure null for empty nickname
|
||||
};
|
||||
|
||||
const backendUrl = env.VITE_PUBLIC_BACKEND_URL;
|
||||
const backendUrl = import.meta.env.VITE_BACKEND_URL;
|
||||
if (!backendUrl) {
|
||||
throw new Error("Backend URL is not configured");
|
||||
}
|
||||
|
||||
@@ -24,13 +24,13 @@ interface AuthState {
|
||||
const signInWithProvider = async (provider: DriveProvider) => {
|
||||
return authClient.signIn.social({
|
||||
provider,
|
||||
callbackURL: `${env.VITE_PUBLIC_FRONTEND_URL}/dashboard`,
|
||||
callbackURL: `${import.meta.env.VITE_FRONTEND_URL}/dashboard`,
|
||||
});
|
||||
};
|
||||
|
||||
const linkSessionWithProvider = async (
|
||||
provider: DriveProvider,
|
||||
callbackURL: string = `${env.VITE_PUBLIC_FRONTEND_URL}/dashboard`
|
||||
callbackURL: string = `${import.meta.env.VITE_FRONTEND_URL}/dashboard`
|
||||
) => {
|
||||
return authClient.linkSocial({
|
||||
provider,
|
||||
@@ -200,7 +200,7 @@ export const useSignUp = () => {
|
||||
name: fullName,
|
||||
email: data.email,
|
||||
password: data.password,
|
||||
callbackURL: `${env.VITE_PUBLIC_FRONTEND_URL}/dashboard`,
|
||||
callbackURL: `${import.meta.env.VITE_FRONTEND_URL}/dashboard`,
|
||||
});
|
||||
redirectToDashboard();
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ export function cn(...inputs: ClassValue[]) {
|
||||
* Gets the base URL for the frontend
|
||||
*/
|
||||
export const getBaseUrl = () => {
|
||||
return env.VITE_PUBLIC_FRONTEND_URL;
|
||||
return import.meta.env.VITE_FRONTEND_URL;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,7 @@ function SettingsPage() {
|
||||
if (user?.email !== email) {
|
||||
await authClient.changeEmail({
|
||||
newEmail: email,
|
||||
callbackURL: `${env.VITE_PUBLIC_FRONTEND_URL}/verify-email`,
|
||||
callbackURL: `${import.meta.env.VITE_FRONTEND_URL}/verify-email`,
|
||||
});
|
||||
isUpdated = true;
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ import env from "@nimbus/env/client";
|
||||
import { hc } from "hono/client";
|
||||
|
||||
const createClient = (options?: ClientRequestOptions) => {
|
||||
if (!env.VITE_PUBLIC_BACKEND_URL) {
|
||||
throw new Error("VITE_PUBLIC_BACKEND_URL is not configured");
|
||||
if (!import.meta.env.VITE_BACKEND_URL) {
|
||||
throw new Error("VITE_BACKEND_URL is not configured");
|
||||
}
|
||||
return hc<AppType>(env.VITE_PUBLIC_BACKEND_URL, options);
|
||||
return hc<AppType>(import.meta.env.VITE_BACKEND_URL, options);
|
||||
};
|
||||
export const publicClient = createClient();
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@ import env from "@nimbus/env/client";
|
||||
export const siteConfig = {
|
||||
name: "Nimbus",
|
||||
description: "A better cloud storage solution.",
|
||||
url: env.VITE_PUBLIC_FRONTEND_URL,
|
||||
url: import.meta.env.VITE_FRONTEND_URL,
|
||||
twitterHandle: "@nimbusdotcloud",
|
||||
} as const;
|
||||
|
||||
3
bun.lock
3
bun.lock
@@ -16,6 +16,7 @@
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-sort-imports": "^1.8.8",
|
||||
"prettier-plugin-tailwindcss": "^0.6.14",
|
||||
"process": "^0.11.10",
|
||||
"turbo": "^2.5.6",
|
||||
"typescript": "^5.9.2",
|
||||
},
|
||||
@@ -1670,6 +1671,8 @@
|
||||
|
||||
"prettier-plugin-tailwindcss": ["prettier-plugin-tailwindcss@0.6.14", "", { "peerDependencies": { "@ianvs/prettier-plugin-sort-imports": "*", "@prettier/plugin-hermes": "*", "@prettier/plugin-oxc": "*", "@prettier/plugin-pug": "*", "@shopify/prettier-plugin-liquid": "*", "@trivago/prettier-plugin-sort-imports": "*", "@zackad/prettier-plugin-twig": "*", "prettier": "^3.0", "prettier-plugin-astro": "*", "prettier-plugin-css-order": "*", "prettier-plugin-import-sort": "*", "prettier-plugin-jsdoc": "*", "prettier-plugin-marko": "*", "prettier-plugin-multiline-arrays": "*", "prettier-plugin-organize-attributes": "*", "prettier-plugin-organize-imports": "*", "prettier-plugin-sort-imports": "*", "prettier-plugin-style-order": "*", "prettier-plugin-svelte": "*" }, "optionalPeers": ["@ianvs/prettier-plugin-sort-imports", "@prettier/plugin-hermes", "@prettier/plugin-oxc", "@prettier/plugin-pug", "@shopify/prettier-plugin-liquid", "@trivago/prettier-plugin-sort-imports", "@zackad/prettier-plugin-twig", "prettier-plugin-astro", "prettier-plugin-css-order", "prettier-plugin-import-sort", "prettier-plugin-jsdoc", "prettier-plugin-marko", "prettier-plugin-multiline-arrays", "prettier-plugin-organize-attributes", "prettier-plugin-organize-imports", "prettier-plugin-sort-imports", "prettier-plugin-style-order", "prettier-plugin-svelte"] }, "sha512-pi2e/+ZygeIqntN+vC573BcW5Cve8zUB0SSAGxqpB4f96boZF4M3phPVoOFCeypwkpRYdi7+jQ5YJJUwrkGUAg=="],
|
||||
|
||||
"process": ["process@0.11.10", "", {}, "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A=="],
|
||||
|
||||
"promise-queue": ["promise-queue@2.2.5", "", {}, "sha512-p/iXrPSVfnqPft24ZdNNLECw/UrtLTpT3jpAAMzl/o5/rDsGCPo3/CQS2611flL6LkoEJ3oQZw7C8Q80ZISXRQ=="],
|
||||
|
||||
"prop-types": ["prop-types@15.8.1", "", { "dependencies": { "loose-envify": "^1.4.0", "object-assign": "^4.1.1", "react-is": "^16.13.1" } }, "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg=="],
|
||||
|
||||
@@ -93,15 +93,15 @@ services:
|
||||
# dockerfile: apps/web/Dockerfile
|
||||
# target: runner
|
||||
# args:
|
||||
# VITE_PUBLIC_BACKEND_URL: ${VITE_PUBLIC_BACKEND_URL}
|
||||
# VITE_PUBLIC_FRONTEND_URL: ${VITE_PUBLIC_FRONTEND_URL}
|
||||
# VITE_BACKEND_URL: ${VITE_BACKEND_URL}
|
||||
# VITE_FRONTEND_URL: ${VITE_FRONTEND_URL}
|
||||
# container_name: nimbus-web
|
||||
# restart: unless-stopped
|
||||
# env_file: .env
|
||||
# environment:
|
||||
# NODE_ENV: production
|
||||
# VITE_PUBLIC_BACKEND_URL: ${VITE_PUBLIC_BACKEND_URL}
|
||||
# VITE_PUBLIC_FRONTEND_URL: ${VITE_PUBLIC_FRONTEND_URL}
|
||||
# VITE_BACKEND_URL: ${VITE_BACKEND_URL}
|
||||
# VITE_FRONTEND_URL: ${VITE_FRONTEND_URL}
|
||||
# ports:
|
||||
# - "3000:3000"
|
||||
# depends_on:
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-sort-imports": "^1.8.8",
|
||||
"prettier-plugin-tailwindcss": "^0.6.14",
|
||||
"process": "^0.11.10",
|
||||
"turbo": "^2.5.6",
|
||||
"typescript": "^5.9.2"
|
||||
},
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
# @nimbus/auth
|
||||
|
||||
## 0.0.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 45caeab: chore: add WRANGLER_DEV to .env.example chore: configure t3 env to switch NODE_ENV to production when
|
||||
WRANGLER_DEV is "true" chore: update auth.ts to throw on error chore: update server.ts to load env from hono context
|
||||
chore: update server.ts to include Cloudflare namespace types: Env, ExecutionContext
|
||||
- Updated dependencies [45caeab]
|
||||
- @nimbus/env@0.0.3
|
||||
- @nimbus/cache@0.0.3
|
||||
- @nimbus/db@0.0.3
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 2efcc5a: chore: added better-auth on error handling for production (console.error(error, AuthContext) chore: added
|
||||
upstash vs valkey getter handling (upstash does not resturn string) chore: added wrangler dev, bun dev, and production
|
||||
runtime handling for server chore: context must be re-created (not a singleton) for edge runtime)
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7ffde8d: chore: add cf header to better-auth config chore: edge runtime db insert error from better-auth using
|
||||
verification table. updated schema and generated migrations
|
||||
- 03bb85d: chore: updated everything to latest except zod and Next.js (zod, tying errors, opennextjs-cloudflare only
|
||||
supports 15.3) CMD: find . -type f -name "package.json" -not -path "_/node_modules/_" -not -path "*/.*next/\*" -exec
|
||||
sh -c 'echo "\nUpdating $1/..." && (cd "$(dirname "$1")" && ncu -u)' \_ {} \; chore: revert zod upgrade as it breaks
|
||||
better-auth typing chore: zod broke better-auth typing again... chore: revert back to base sql chore: auth clean
|
||||
chore: FINALLY fixed schema.ts chore: reset migrations to current database state. removed the rateLimit table since we
|
||||
use cache now
|
||||
- Updated dependencies [de391ed]
|
||||
- Updated dependencies [7ffde8d]
|
||||
- Updated dependencies [03bb85d]
|
||||
- @nimbus/db@0.0.2
|
||||
- @nimbus/env@0.0.2
|
||||
- @nimbus/cache@0.0.2
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
- Updated dependencies [7e2271f]
|
||||
- @nimbus/cache@0.0.1
|
||||
- @nimbus/env@0.0.1
|
||||
- @nimbus/db@0.0.1
|
||||
@@ -4,8 +4,8 @@ import { createAuthClient } from "better-auth/react";
|
||||
import env from "@nimbus/env/client";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: env.VITE_PUBLIC_BACKEND_URL,
|
||||
callbackUrl: `${env.VITE_PUBLIC_FRONTEND_URL}/dashboard`,
|
||||
baseURL: import.meta.env.VITE_BACKEND_URL,
|
||||
callbackUrl: `${import.meta.env.VITE_FRONTEND_URL}/dashboard`,
|
||||
plugins: [
|
||||
genericOAuthClient(),
|
||||
stripeClient({
|
||||
|
||||
23
packages/cache/CHANGELOG.md
vendored
23
packages/cache/CHANGELOG.md
vendored
@@ -1,23 +0,0 @@
|
||||
# @nimbus/cache
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [45caeab]
|
||||
- @nimbus/env@0.0.3
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [03bb85d]
|
||||
- @nimbus/env@0.0.2
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
- Updated dependencies [7e2271f]
|
||||
- @nimbus/env@0.0.1
|
||||
@@ -1,32 +0,0 @@
|
||||
# @nimbus/db
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [45caeab]
|
||||
- @nimbus/env@0.0.3
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- de391ed: Reverting db to original schema. validation table error not fixed.
|
||||
- 7ffde8d: chore: add cf header to better-auth config chore: edge runtime db insert error from better-auth using
|
||||
verification table. updated schema and generated migrations
|
||||
- 03bb85d: chore: updated everything to latest except zod and Next.js (zod, tying errors, opennextjs-cloudflare only
|
||||
supports 15.3) CMD: find . -type f -name "package.json" -not -path "_/node_modules/_" -not -path "*/.*next/\*" -exec
|
||||
sh -c 'echo "\nUpdating $1/..." && (cd "$(dirname "$1")" && ncu -u)' \_ {} \; chore: revert zod upgrade as it breaks
|
||||
better-auth typing chore: zod broke better-auth typing again... chore: revert back to base sql chore: auth clean
|
||||
chore: FINALLY fixed schema.ts chore: reset migrations to current database state. removed the rateLimit table since we
|
||||
use cache now
|
||||
- Updated dependencies [03bb85d]
|
||||
- @nimbus/env@0.0.2
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
- Updated dependencies [7e2271f]
|
||||
- @nimbus/env@0.0.1
|
||||
26
packages/env/CHANGELOG.md
vendored
26
packages/env/CHANGELOG.md
vendored
@@ -1,26 +0,0 @@
|
||||
# @nimbus/env
|
||||
|
||||
## 0.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 45caeab: chore: add WRANGLER_DEV to .env.example chore: configure t3 env to switch NODE_ENV to production when
|
||||
WRANGLER_DEV is "true" chore: update auth.ts to throw on error chore: update server.ts to load env from hono context
|
||||
chore: update server.ts to include Cloudflare namespace types: Env, ExecutionContext
|
||||
|
||||
## 0.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 03bb85d: chore: updated everything to latest except zod and Next.js (zod, tying errors, opennextjs-cloudflare only
|
||||
supports 15.3) CMD: find . -type f -name "package.json" -not -path "_/node_modules/_" -not -path "*/.*next/\*" -exec
|
||||
sh -c 'echo "\nUpdating $1/..." && (cd "$(dirname "$1")" && ncu -u)' \_ {} \; chore: revert zod upgrade as it breaks
|
||||
better-auth typing chore: zod broke better-auth typing again... chore: revert back to base sql chore: auth clean
|
||||
chore: FINALLY fixed schema.ts chore: reset migrations to current database state. removed the rateLimit table since we
|
||||
use cache now
|
||||
|
||||
## 0.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7e2271f: init changeset
|
||||
18
packages/env/client.ts
vendored
18
packages/env/client.ts
vendored
@@ -3,19 +3,19 @@ import { z } from "zod";
|
||||
|
||||
const env = createEnv({
|
||||
runtimeEnv: {
|
||||
VITE_PUBLIC_BACKEND_URL: import.meta.env.VITE_PUBLIC_BACKEND_URL,
|
||||
VITE_PUBLIC_FRONTEND_URL: import.meta.env.VITE_PUBLIC_FRONTEND_URL,
|
||||
VITE_PUBLIC_POSTHOG_KEY: import.meta.env.VITE_PUBLIC_POSTHOG_KEY,
|
||||
VITE_PUBLIC_POSTHOG_HOST: import.meta.env.VITE_PUBLIC_POSTHOG_HOST,
|
||||
VITE_BACKEND_URL: import.meta.env.VITE_BACKEND_URL,
|
||||
VITE_FRONTEND_URL: import.meta.env.VITE_FRONTEND_URL,
|
||||
VITE_POSTHOG_KEY: import.meta.env.VITE_POSTHOG_KEY,
|
||||
VITE_POSTHOG_HOST: import.meta.env.VITE_POSTHOG_HOST,
|
||||
},
|
||||
|
||||
clientPrefix: "VITE_PUBLIC_",
|
||||
clientPrefix: "VITE_",
|
||||
client: {
|
||||
// Client-side environment variables
|
||||
VITE_PUBLIC_BACKEND_URL: z.url(),
|
||||
VITE_PUBLIC_FRONTEND_URL: z.url(),
|
||||
VITE_PUBLIC_POSTHOG_KEY: z.string().optional(),
|
||||
VITE_PUBLIC_POSTHOG_HOST: z.string().optional(),
|
||||
VITE_BACKEND_URL: z.url(),
|
||||
VITE_FRONTEND_URL: z.url(),
|
||||
VITE_POSTHOG_KEY: z.string().optional(),
|
||||
VITE_POSTHOG_HOST: z.string().optional(),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@
|
||||
"noUnusedParameters": false,
|
||||
"noPropertyAccessFromIndexSignature": false,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"types": ["node"]
|
||||
"types": ["node", "vite/client"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user