dev
dev
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
(like any other person running remix on CF)
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
import {
vitePlugin as remix,
cloudflareDevProxyVitePlugin as remixCloudflareDevProxy,
} from '@remix-run/dev';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import { getLoadContext } from './load-context';

export default defineConfig({
plugins: [
remixCloudflareDevProxy({
getLoadContext,
}),
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
}),
tsconfigPaths(),
],
});
import {
vitePlugin as remix,
cloudflareDevProxyVitePlugin as remixCloudflareDevProxy,
} from '@remix-run/dev';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import { getLoadContext } from './load-context';

export default defineConfig({
plugins: [
remixCloudflareDevProxy({
getLoadContext,
}),
remix({
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
}),
tsconfigPaths(),
],
});
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
unfortunately I'm using remix+vite+remixCloudflareDevProxy, so I can't use any CLI options
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
because I can't set the local values anymore 😦
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
also, if I remove my toml file I won't be able to do this:
[[d1_databases]]
binding = "DB"
database_name = "XXXXX-db-local"
database_id = "123"

[[env.preview.d1_databases]]
binding = "DB"
database_name = "XXXXX-db-preview"
database_id = "XXXXXX"

[[env.production.d1_databases]]
binding = "DB"
database_name = "XXXXX-db"
database_id = "XXXXX"
[[d1_databases]]
binding = "DB"
database_name = "XXXXX-db-local"
database_id = "123"

[[env.preview.d1_databases]]
binding = "DB"
database_name = "XXXXX-db-preview"
database_id = "XXXXXX"

[[env.production.d1_databases]]
binding = "DB"
database_name = "XXXXX-db"
database_id = "XXXXX"
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
and if I wanna use plain text variables locally I just put them in .dev.vars as well? (assuming I remove my toml file)
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
but that also makes no sense because secrets were working just fine. onyl plain text variables were not being passed to my page context
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
are you saying that if I remove my wrangler toml file, it should work?
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
but really I'd like to manage everything from the dashboard. I don't see the point of having to manage things from two places
19 replies
CDCloudflare Developers
Created by dev on 10/9/2024 in #pages-help
plain text environment variables are not available under env
so I had to put all my plain text variables in my toml file (which then creates another set of issues https://github.com/cloudflare/workers-sdk/issues/6931)
19 replies