Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: initial commit for wrangler support #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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