feat: end to end api type safety with redis rate limiting (#573)

* feat: support hono rpc

* add wrangler file

* update name of wrangler file

* add wrangler as a dependency

* add compatibility_flags

* trigger ci

* core: add health check to docker file

* expose port 80

* update custom healthcheck

* feat: implement openapi

* install dependencies in root

* debug yml

* update yml

* update port

* update dockerfile with envs

* completely move away from apiClient

* rename backend to api

* refactor: update server descriptions and comment out local spec saving

* update lock file

* use api.classroomio.com

* add support for redis

* fix: add missing line break in WelcomeModal.svelte

* refactor: remove wrangler configuration and update Vite config for API integration
This commit is contained in:
Rotimi Best
2025-09-21 19:35:41 +01:00
committed by GitHub
parent a6880f1b54
commit 6d68351a46
102 changed files with 2938 additions and 1633 deletions
+10 -4
View File
@@ -1,7 +1,9 @@
import { sveltekit } from '@sveltejs/kit/vite';
import fs from 'fs';
import { defineConfig, loadEnv } from 'vite';
import fs from 'fs';
import path from 'path';
import { sveltekit } from '@sveltejs/kit/vite';
export default ({ mode }) => {
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
@@ -19,10 +21,14 @@ export default ({ mode }) => {
sourcemap: false
},
optimizeDeps: {
entries: ['src/routes/**/+*.{js,ts,svelte}']
entries: ['src/routes/**/+*.{js,ts,svelte}'],
include: ['@cio/api/rpc-types']
},
resolve: {
mainFields: ['browser']
mainFields: ['browser'],
alias: {
'@cio/api': path.resolve(__dirname, '../api/dist')
}
}
});
};