Reuben Firmin
10/05/2024, 12:19 PMdevServer = devServer?.copy(
open = false,
proxy = mutableMapOf(
"*" to mapOf(
"target" to "<http://localhost:9000>",
"bypass" to """
function (req, res, proxyOptions) {
if (req.headers.accept.indexOf('.js') !== -1) {
return req.headers.accept;
}
}
""".trimIndent()
)
)
)
Robert Jaros
10/05/2024, 12:25 PMRobert Jaros
10/05/2024, 12:25 PM