Move images to another folder

server handles requests correctly by redirecting either to FE or
 handling the request. I could not find a proper way to do that for the
 client. So lets just avoid using folder names that are API paths
This commit is contained in:
Stefan Forstenlechner 2024-08-15 17:38:59 +02:00
parent 0ae8a1f257
commit e28475c5aa
12 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ export default defineConfig(() => {
], ],
server: { server: {
proxy: { proxy: {
"/images/": { // Should only match in case header accepts JSON, otherwise vite should handle it and not the proxy
// Could not find a way to do that
"/images": {
target: "http://localhost:3001", target: "http://localhost:3001",
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

Before

Width:  |  Height:  |  Size: 5.7 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB