Rastislav₡ore
Rastislav₡ore
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
I received new recommendation as: - do not use auto-adapter (BTW this is not working for me either) svelte.config.js
import adapter from '@sveltejs/adapter-cloudflare';

export default {
kit: {
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/*'],
exclude: ['<all>']
},
platformProxy: {
configPath: 'wrangler.toml',
environment: undefined,
experimentalJsonConfig: false,
persist: false
}
})
}
};
import adapter from '@sveltejs/adapter-cloudflare';

export default {
kit: {
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/*'],
exclude: ['<all>']
},
platformProxy: {
configPath: 'wrangler.toml',
environment: undefined,
experimentalJsonConfig: false,
persist: false
}
})
}
};
wrangler.toml
pages_build_output_dir = ".svelte-kit/cloudflare"
pages_build_output_dir = ".svelte-kit/cloudflare"
None of those is helping me. And after discussion with SvelteKit developer community not recommended either.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
Currently the Cloudflare's bug is not possible to resolve. There is malfunction in Hyperdrive and D1, I will not recommend to use it even in future because my experiences with Cloudflare's development team. Internal processes were failing. But if you want to do some development possible, please not production. I am currently removing anything related to Cloudflare in our application.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
@Register Not at all. Mr. Sugar (Account Manager) has acknowledged the issues and malfunctioning services Cloudflare provides, with no resolution in sight. I strongly recommend discontinuing Cloudflare services where feasible. Our team is currently migrating away due to their persistent technical incompetence and lack of professional reliability.
27 replies
CDCloudflare Developers
Created by Nob on 9/23/2024 in #pages-help
Postgres.js not working in next.js
Reply from the Cloudflare support: Please consider the following recommendations: 1. Change the NODE_VERSION to v18. 2. Set the compatibility date to the current date. @Nob let me know if that is working for you.
5 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
Reply from the Cloudflare support: Please consider the following recommendations: 1. Change the NODE_VERSION to v18. 2. Set the compatibility date to the current date.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
I think the issue is not related to framework, because I am aware of issues for React also. You may be in same category as us. I am still waiting for support team to answer. Seems no really priority to them. I will recommend you will raise support ticket as well, it may be faster answer for you. I will appreciate sharing any feedback from you @Register Thank you for contributing to thread.
27 replies
CDCloudflare Developers
Created by Nob on 9/23/2024 in #pages-help
Postgres.js not working in next.js
Yes that is an ideal workaround. Unfortunately Cloudflare is offering malfunctioning services such as Hyperdrive (I am paying for it) and I cannot use it. I don't have any reply from support till now. I will try deploy it to alternative less pathetic services. Shame because I liked Cloudflare till now... I am not sentimental but the lack of action in my (our) case is frustrating.
5 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
One additional note to the topic: - I have paid pages/workers plan - Hyperdrive is available for me No other updates so far about the topic.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
27 replies
CDCloudflare Developers
Created by Nob on 9/23/2024 in #pages-help
Postgres.js not working in next.js
If you raise compatibility day then nodejs_compat = nodejs_compat_v2 as stated in the documentation. Then this is not needed anymore, but this is just minor improvement. I am facing same error as you in SvelteKit, then seems like it is serious error on Cloudflare. Even support ticket is w/o any reaction for week. You will be probably blocked as I am till Cloudflare will react. I am dedicated to send help to the community as soon as I will get reply.
5 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
@vytskalt Sent to support. When I will get any reply, I will reveal solution here.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
Oh sorry, didn't know. I will found out myself.
27 replies
CDCloudflare Developers
Created by Rastislav₡ore on 9/16/2024 in #pages-help
Compatibility flags for PosgreSQL
@vytskalt so far no solution. Seems this is serious bug on side of Cloudflare. I am trying to resolve with Drizzle ORM but same issues. I will update here if some news will occur. @Community Champion should I report bug? If yes, where?
27 replies