Skip to content

Conversation

@Code-Hex
Copy link

@Code-Hex Code-Hex commented Nov 13, 2023

Relate: #25

Now, we can use wrangler.toml and use local storage under .wrangler/state/v3

import { defineConfig } from 'vite';
import devServer from '@hono/vite-dev-server'

export default defineConfig(({ mode }) => {
  return {
    plugins: [
      devServer({
        entry: 'src/worker.ts',
        wranglerTomlPath: 'wrangler.toml',
      }),
    ],
    esbuild: {
      target: 'es2021',
    },
  };
});

@yusukebe
Copy link
Member

Hi @Code-Hex,

I'm currently refactoring the dev-server code. This won't involve any breaking changes, but there will be significant changes to the code base. I'll create a PR soon, but you should hold off on any further developments until then.

@Code-Hex
Copy link
Author

@yusukebe OK! Thanks.

@yusukebe
Copy link
Member

Hi @Code-Hex,

I've refactored and added the ENV / env feature in PR #30, and have bumped to a new version.

So, now you can go ahead with your PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants