Conversation

alexander-akait
  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

will be later

Motivation / Use-Case

#5258
#4741

Breaking Changes

No

Additional Info

No

/cc @ckken

Configuration:

module.exports = {
    name: "app",
    devtool: false,
    target: "web",
    entry: "./src/index.js",
    mode: "development",
    devServer: {
      setupMiddlewares: (_, devServer) => [
        {
          name: "webpack-dev-middleware",
          middleware: require("webpack-dev-middleware").honoWrapper(devServer.compiler),
        },
        {
          name: "static",
          middleware: require('@hono/node-server/serve-static')({ root: './public' }),
        },
      ],
      app: () => new (require("hono").Hono)(),
      server: (_, app) => require("@hono/node-server").serve(app),
    },
  }

There are still some things need to solve, but locally works fine

@alexander-akaitalexander-akait changed the title Fix dev server false feat: allow the server option to be Function Aug 21, 2024
@ckkenckken mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@alexander-akait