This is a template you must use to report issues.
You can also drag images, videos and includePreformatted text
.
Feature(s) impacted
Cannot fetch /forest and thus stuck on “Waiting for your backend to run…”
Observed behavior
The middleware FAMiddleware created with forest.init is registered with app.use(FAMiddleware) but HTTP /forest renders not found error
Expected behavior
The backoffice is created and we have access to it.
Failure Logs
Context
- Project name: OrthonovFormBackoffice
import Mongoose from "mongoose"
import forest from "forest-express-mongoose"
const app = express()
connectDB()
.then((connection) => {
forest
.init({
envSecret: process.env.FOREST_ENV_SECRET,
authSecret: process.env.FOREST_AUTH_SECRET,
objectMapping: Mongoose,
connections: { default: connection },
})
.then((FAMiddleware) => {
app.use(FAMiddleware)
})
})
.catch((err) => handleError(err))
// Register middlewares including loader
app.use("^(?!forest/?$).*", cors())