fix: return JSON errors for unmatched local API routes

Test development and built-preview route registration, preserve development-only credential editing, and document local preview configuration.
This commit is contained in:
Sameh Khamis committed 2026-09-12 12:43:54 -07:00
1 parent a0f07b752f
commit 280fc00a51
8 files changed
+205 -4

No files matched your search

+3 -2
View File
@@ -63,10 +63,11 @@ test('root config retains existing named exports and standalone provider order',
assert.equal(compatibility[name], value, name);
const config = standaloneConfig({ mode: 'test' });
assert.deepEqual(
config.plugins.slice(1).map((plugin) => plugin.name),
config.plugins.slice(1, -1).map((plugin) => plugin.name),
providers.localProviderPlugins().map((plugin) => plugin.name),
);
assert.equal(config.plugins.at(-1).name, 'gev-key-setup');
assert.equal(config.plugins.at(-2).name, 'gev-key-setup');
assert.equal(config.plugins.at(-1).name, 'api-not-found');
});
test('build export resolves in Node and has no browser fallback', async () => {