-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deps, use tailwind v4, add allowed hosts env var
- Loading branch information
Showing
19 changed files
with
642 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer utilities { | ||
/* Chrome, Safari and Opera */ | ||
.scrollbar-hidden::-webkit-scrollbar { | ||
display: none; | ||
} | ||
@import 'tailwindcss'; | ||
|
||
.scrollbar-hidden { | ||
scrollbar-width: none; /* Firefox */ | ||
-ms-overflow-style: none; /* IE and Edge */ | ||
} | ||
@plugin '@tailwindcss/forms'; | ||
|
||
@theme { | ||
--font-*: initial; | ||
--font-sans: Inter, sans-serif; | ||
} | ||
|
||
/* | ||
The default border color has changed to `currentColor` in Tailwind CSS v4, | ||
so we've added these compatibility styles to make sure everything still | ||
looks the same as it did with Tailwind CSS v3. | ||
If we ever want to remove these styles, we need to add an explicit border | ||
color utility to any element that depends on these defaults. | ||
*/ | ||
/* @layer base { | ||
*, | ||
::after, | ||
::before, | ||
::backdrop, | ||
::file-selector-button { | ||
border-color: var(--color-gray-200, currentColor); | ||
} | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vite'; | ||
import tailwindcss from '@tailwindcss/vite'; | ||
import { defineConfig, loadEnv } from 'vite'; | ||
|
||
export default defineConfig({ | ||
plugins: [sveltekit()], | ||
server: { | ||
proxy: { | ||
'/api': { | ||
target: 'http://localhost:3055', | ||
changeOrigin: true, | ||
rewrite: (path) => path.replace(/^\/api/, '') | ||
} | ||
export default defineConfig(({ mode }) => { | ||
const env = loadEnv(mode, process.cwd()); | ||
const allowedHosts = env.VITE_ALLOWED_HOSTS?.split(','); | ||
|
||
return { | ||
plugins: [tailwindcss(), sveltekit()], | ||
server: { | ||
proxy: { | ||
'/api': { | ||
target: 'http://localhost:3055', | ||
changeOrigin: true, | ||
rewrite: (path) => path.replace(/^\/api/, '') | ||
} | ||
}, | ||
allowedHosts | ||
// : allowedHosts.length ? allowedHosts : undefined | ||
} | ||
} | ||
}; | ||
}); |