Rice Spice
Rice Spice
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
I looked through yours but tbh i have no idea what im looking at 😭
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
quick question Would you mind going through the tutorial? It hsouldn't take too long since you already work with this @Pobiega
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
ill give some stuff a try though
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
No description
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
i think it worked
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
should i include host:true?
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
this is what the tutorial says but this is also my first time using C#
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
No description
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
so i was thinking it's a issue with the proxy server not being set up right
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
it just keeps loading the white screen
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
i meant once i changed
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
host: true
}
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
host: true
}
})
to
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
proxy: {
'/pizzas': {
target: 'https://localhost:5100', // Mock server port
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
proxy: {
'/pizzas': {
target: 'https://localhost:5100', // Mock server port
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}
})
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
but it jsut keeps loading a white screen
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
it's suppose to load the front end and display properly
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
but the target is already 'https://localhost:5100', am i missing something?
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
proxy: {
'/pizzas': {
target: 'https://localhost:5100', // Mock server port
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}
})
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
port: 3000, // Client port
proxy: {
'/pizzas': {
target: 'https://localhost:5100', // Mock server port
changeOrigin: true,
secure: false,
ws: true,
configure: (proxy, _options) => {
proxy.on('error', (err, _req, _res) => {
console.log('proxy error', err);
});
proxy.on('proxyReq', (proxyReq, req, _res) => {
console.log('Sending Request to the Target:', req.method, req.url);
});
proxy.on('proxyRes', (proxyRes, req, _res) => {
console.log('Received Response from the Target:', proxyRes.statusCode, req.url);
});
},
}
}
}
})
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
im a bit confused
46 replies
CC#
Created by Rice Spice on 5/31/2024 in #help
Front stack help
I'm not sure where I'm suppose to be pasting the proxy property as what I have copied is just localhost:5100
46 replies