Skip to content

How to use --persist-to wrangler command flag with remix cloudflare? #9989

Answered by andycrum
hmble asked this question in Q&A
Discussion options

You must be logged in to vote

@hmble The change will be in your vite.config.ts file. cloudflareDevProxyVitePlugin has a persist config option where you can pass in a relative path to the folder containing your data (I think mostly undocumented, I had to really dig to find it).

So part of your your vite config's plugins section might look like this:

plugins: [
  cloudflareDevProxyVitePlugin({
    getLoadContext,
    persist: {
      path: "../..../_local_db/v3",
    },
  }),
 ...(other stuff here)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hmble
Comment options

Answer selected by hmble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants