Skip to content

Commit 679e10a

Browse files
committed
feat!: make cache server stateless & native multipart uploads (#70)
1 parent a4f7b0c commit 679e10a

Some content is hidden

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

42 files changed

+6034
-4269
lines changed

.env

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
URL_ACCESS_TOKEN=test_token
22
API_BASE_URL=http://localhost:3000
33
DEBUG=true
4-
TEMP_DIR=.data/temp
54

65
# filesystem
76
STORAGE_DRIVER=filesystem
87
STORAGE_FILESYSTEM_PATH=.data/storage/filesystem
98

109
# s3
1110
# STORAGE_DRIVER=s3
12-
# STORAGE_S3_BUCKET=
13-
# STORAGE_S3_ENDPOINT=
14-
# STORAGE_S3_REGION=
15-
# STORAGE_S3_PORT=
16-
# STORAGE_S3_USE_SSL=
17-
# STORAGE_S3_ACCESS_KEY=
18-
# STORAGE_S3_SECRET_KEY=
11+
# STORAGE_S3_BUCKET=test
12+
# STORAGE_S3_ENDPOINT=localhost
13+
# STORAGE_S3_PORT=9000
14+
# STORAGE_S3_USE_SSL=false
15+
# STORAGE_S3_ACCESS_KEY=minioadmin
16+
# STORAGE_S3_SECRET_KEY=minioadmin
1917

2018
# sqlite
2119
DB_DRIVER=sqlite

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
storage-driver: [filesystem, memory, s3, gcs]
47+
storage-driver: [filesystem, s3, gcs]
4848
db-driver: [postgres, mysql, sqlite]
4949
steps:
5050
- name: pnpm install

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine as builder
1+
FROM node:22-alpine as builder
22

33
ARG BUILD_HASH
44
ENV BUILD_HASH=${BUILD_HASH}
@@ -21,7 +21,7 @@ RUN pnpm run build
2121

2222
# --------------------------------------------
2323

24-
FROM node:20-alpine as runner
24+
FROM node:22-alpine as runner
2525

2626
WORKDIR /app
2727

db-drivers/postgres.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
"typecheck": "nuxt typecheck"
1313
},
1414
"dependencies": {
15-
"@iconify-json/ph": "^1.1.14",
16-
"@iconify-json/simple-icons": "^1.1.114",
17-
"@nuxt/content": "^2.13.2",
18-
"@nuxt/fonts": "^0.7.2",
19-
"@nuxt/ui-pro": "^1.4.1",
20-
"nuxt": "^3.13.0",
15+
"@iconify-json/ph": "^1.2.1",
16+
"@iconify-json/simple-icons": "^1.2.8",
17+
"@nuxt/content": "^2.13.4",
18+
"@nuxt/fonts": "^0.10.0",
19+
"@nuxt/ui-pro": "^1.4.4",
20+
"nuxt": "^3.13.2",
2121
"ufo": "^1.5.4",
2222
"vite-plugin-wasm": "^3.3.0"
2323
},
2424
"devDependencies": {
25-
"@nuxthq/studio": "^2.0.3",
26-
"vue-tsc": "^2.0.29"
25+
"@nuxthq/studio": "^2.1.1",
26+
"vue-tsc": "^2.1.6"
2727
}
2828
}

docs/pnpm-lock.yaml

Lines changed: 1894 additions & 1535 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default eslintConfig({
1414
.append({
1515
rules: {
1616
'compat/compat': 'off',
17+
'node/prefer-global/buffer': 'off',
1718
},
1819
})
1920
.append({

lib/db/driver.ts renamed to lib/db/defineDatabaseDriver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable unicorn/filename-case */
12
import { formatZodError } from '~/lib/env'
23
import { logger } from '~/lib/logger'
34

db-drivers/index.ts renamed to lib/db/drivers/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { mysqlDriver } from '~/db-drivers/mysql'
2-
import { postgresDriver } from '~/db-drivers/postgres'
3-
import { sqliteDriver } from '~/db-drivers/sqlite'
4-
import type { defineDatabaseDriver } from '~/lib/db/driver'
1+
import type { defineDatabaseDriver } from '~/lib/db/defineDatabaseDriver'
2+
import { mysqlDriver } from '~/lib/db/drivers/mysql'
3+
import { postgresDriver } from '~/lib/db/drivers/postgres'
4+
import { sqliteDriver } from '~/lib/db/drivers/sqlite'
55

66
const databaseDrivers = {
77
sqlite: sqliteDriver,

db-drivers/mysql.ts renamed to lib/db/drivers/mysql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { MysqlDialect } from 'kysely'
22
import { createPool } from 'mysql2'
33
import { z } from 'zod'
44

5-
import { defineDatabaseDriver } from '~/lib/db/driver'
5+
import { defineDatabaseDriver } from '~/lib/db/defineDatabaseDriver'
66

77
export const mysqlDriver = defineDatabaseDriver({
88
envSchema: z.object({

0 commit comments

Comments
 (0)