fix: add validation for display name length in user creation and update requests

This commit is contained in:
2025-12-30 20:28:00 -05:00
parent 27d5de3509
commit 9bb620a4a3
5 changed files with 17 additions and 5 deletions
+6
View File
@@ -3,6 +3,9 @@ import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
const apiUrl = process.env.VITE_API_URL || 'http://localhost:5050';
const allowedHosts = process.env.VITE_ALLOWED_HOSTS
? process.env.VITE_ALLOWED_HOSTS.split(',')
: ['localhost'];
export default defineConfig({
plugins: [tailwindcss(), sveltekit()],
@@ -10,5 +13,8 @@ export default defineConfig({
proxy: {
'/api': apiUrl
}
},
preview: {
allowedHosts: allowedHosts
}
});