Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
name: Release - Canary
name: Release Canary

on:
pull_request:
types: [labeled]
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
if: contains(github.event.pull_request.labels.*.name, 'release canary')
timeout-minutes: 10
name: Build & Publish a canary release
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Check packages for common errors
- name: Build and check packages for common errors
run: pnpm turbo --filter "./packages/*" build

- name: Authenticate to npm
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
# pkg-pr-new does not support prepublish, since it does "npm pack"
- name: Prepublishing
run: pnpm -F cli prepublish

- name: Publish canary releases
run: node .github/release-canary.js
- name: Create pkg.pr.new build
run: pnpm dlx pkg-pr-new publish --comment=create ./packages/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: TODO: Send a Discord notification if a publish happens
# if: steps.changesets.outputs.published == 'true'
# # You can do something when a publish happens.
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"
21 changes: 4 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ FROM dev-deps AS build
ENV CI=1
RUN pnpm run build

FROM dev-deps AS build-docs
ENV CI=1
RUN pnpm -F docs build:cf


##########################
# apps/landing #
##########################
Expand Down Expand Up @@ -96,17 +91,9 @@ CMD ["pnpm", "-F", "master", "start"]
#########################
# apps/docs #
#########################
# Use the official Nginx image as the base image
FROM nginx:alpine AS docs
FROM caddy:2-alpine AS docs
COPY --from=build /app/apps/docs/build /usr/share/caddy
COPY ./infra/Caddyfile /etc/caddy/Caddyfile

# Set the working directory
WORKDIR /app

# Copy the build-docs files from apps/docs/build to Nginx's html directory
COPY --from=build-docs /app/apps/docs/build /usr/share/nginx/html

# Expose port 80 to the outside world
EXPOSE 80

# Start Nginx server
CMD ["nginx", "-g", "daemon off;"]
EXPOSE 443
2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"hono": "^4.5.10",
"ioredis": "^5.4.1",
"nanoid": "5.0.7",
"posthog-node": "4.2.0"
"posthog-node": "4.10.1"
},
"devDependencies": {
"@socketless/eslint-config": "workspace:*",
Expand Down
29 changes: 14 additions & 15 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"license": "Apache-2.0",
"scripts": {
"docusaurus": "docusaurus",
"start": "pnpm with-env docusaurus start",
"dev": "pnpm with-env docusaurus start -p 3002",
"build:cf": "pnpm with-env docusaurus build",
"start": "docusaurus start",
"dev": "docusaurus start -p 3002 --no-open",
"build": "docusaurus build",
"build:cf": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand All @@ -17,24 +18,22 @@
"clean": "git clean -xdf .cache .next .turbo node_modules build .docusaurus",
"lint": "eslint",
"format": "prettier --check . --ignore-path ../../.gitignore",
"typecheck": "tsc --noEmit",
"with-env": "dotenv -e ../../.env --"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@docusaurus/core": "3.7.0",
"@docusaurus/preset-classic": "3.7.0",
"@mdx-js/react": "^3.0.0",
"autoprefixer": "^10.4.20",
"clsx": "^2.0.0",
"clsx": "2.1.1",
"prism-react-renderer": "^2.3.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"redocusaurus": "^2.1.1"
"react": "^19.0.0",
"react-dom": "^19.0.0",
"redocusaurus": "^2.2.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.5.2",
"@docusaurus/tsconfig": "3.5.2",
"@docusaurus/types": "3.5.2",
"@docusaurus/module-type-aliases": "3.7.0",
"@docusaurus/tsconfig": "3.7.0",
"@docusaurus/types": "3.7.0",
"@socketless/eslint-config": "workspace:*",
"@socketless/prettier-config": "workspace:*",
"@socketless/tailwind-config": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"@trpc/react-query": "11.0.0-rc.477",
"geist": "1.3.1",
"lucide-react": "0.394.0",
"next": "14.2.12",
"next": "14.2.25",
"next-client-cookies": "^1.1.1",
"posthog-js": "1.160.3",
"posthog-node": "4.2.0",
"posthog-node": "4.10.1",
"random-words": "^2.0.1",
"react": "18.3.1",
"react-code-blocks": "^0.1.6",
Expand Down
2 changes: 1 addition & 1 deletion apps/master/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@socketless/validators": "workspace:*",
"hono": "^4.5.10",
"ioredis": "^5.4.1",
"posthog-node": "4.2.0"
"posthog-node": "4.10.1"
},
"devDependencies": {
"@socketless/eslint-config": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions apps/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"geist": "1.3.1",
"hono": "^4.5.10",
"lucide-react": "0.394.0",
"next": "14.2.12",
"next": "14.2.25",
"numbro": "^2.5.0",
"posthog-js": "1.160.3",
"posthog-node": "4.2.0",
"posthog-node": "4.10.1",
"react": "18.3.1",
"react-code-blocks": "^0.1.6",
"react-dom": "18.3.1",
Expand Down
51 changes: 51 additions & 0 deletions infra/Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
# Global options
auto_https off
http_port 80
https_port 443
admin off
}

# HTTP site handler
:80 {
# Root directory for all static files
root * /usr/share/caddy

# Try the exact path first, then {path}/index.html, then fall back to 404.html
try_files {path} {path}/index.html /404.html

# Serve static files
file_server

# Logging
log {
output stdout
format json
}
}

# Default site handler
:443 {
# Enable TLS with self-signed certificate
tls internal {
protocols tls1.2 tls1.3
}

# Compression
encode gzip

# Root directory for all static files
root * /usr/share/caddy

# Try the exact path first, then {path}/index.html, then fall back to 404.html
try_files {path} {path}/index.html /404.html

# Serve static files
file_server

# Logging
log {
output stdout
format json
}
}
2 changes: 1 addition & 1 deletion internal-packages/db/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (!process.env.POSTGRES_URL) {
const nonPoolingUrl = process.env.POSTGRES_URL.replace(":6543", ":5432");

export default {
schema: "./src/schema.ts",
schema: "./src/schema",
dialect: "postgresql",
dbCredentials: { url: nonPoolingUrl },
} satisfies Config;
4 changes: 2 additions & 2 deletions internal-packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"default": "./src/client.ts"
},
"./schema": {
"types": "./dist/src/schema.d.ts",
"default": "./src/schema.ts"
"types": "./dist/src/schema/index.d.ts",
"default": "./src/schema/index.ts"
},
"./env": "./env.ts"
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"format:fix": "turbo run format --continue -- --write --cache --cache-location .cache/.prettiercache",
"lint": "turbo run lint --continue -- --cache --cache-location .cache/.eslintcache",
"lint:fix": "turbo run lint --continue -- --fix --cache --cache-location .cache/.eslintcache",
"lint:ws": "pnpm dlx sherif@v0.11.0",
"lint:ws": "pnpm dlx sherif@v0.11.0 -p @socketless/docs",
"postinstall": "pnpm run lint:ws",
"typecheck": "turbo run typecheck",
"ui-add": "turbo run ui-add"
Expand All @@ -30,15 +30,15 @@
},
"devDependencies": {
"@actions/github": "^6.0.0",
"@changesets/cli": "^2.28.1",
"@prettier/sync": "^0.5.2",
"@changesets/cli": "^2.27.7",
"@socketless/prettier-config": "workspace:*",
"@turbo/gen": "2.1.1",
"bunchee": "^5.4.0",
"bunchee": "^5.6.2",
"prettier": "3.3.3",
"turbo": "2.1.1",
"turbo": "^2.4.4",
"typescript": "5.5.4",
"wait-on": "^8.0.0"
"wait-on": "^8.0.3"
},
"prettier": "@socketless/prettier-config",
"packageManager": "pnpm@9.10.0",
Expand Down
Loading
Loading