Max
Max
NNuxt
Created by Max on 1/25/2025 in #❓・help
On every redirect I get /None not found
GET http://localhost:3000/None 404 (Page not found: /None) I do get this error on every reload. It originates in contentScript.bundle.js
5 replies
NNuxt
Created by Max on 1/22/2025 in #❓・help
Nuxt form behaving differently bettwen dev and build
I am trying to build a form in my app. Sadly it behaves differently between dev and build. In dev it just executes the onSubmit method and everything is fine. For build it redirects to the post url. This is the code:
async function onSubmit(event: Event) {
await $fetch("/api/configure", {
method: "POST",
body: JSON.stringify(state),
});
}
</script>

<template>
<UContainer>
<UCard class="min-w-">
<UForm
:schema="formDataSchema"
:state="state"
class="space-y-4"
@submit="onSubmit"
>
async function onSubmit(event: Event) {
await $fetch("/api/configure", {
method: "POST",
body: JSON.stringify(state),
});
}
</script>

<template>
<UContainer>
<UCard class="min-w-">
<UForm
:schema="formDataSchema"
:state="state"
class="space-y-4"
@submit="onSubmit"
>
I also tried with the prevent modifier but that did not help.
17 replies