Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/public/flyio.svg
Comment thread
damianloch marked this conversation as resolved.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions client/src/app/api/provider-preferences/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function GET() {
}

// Ensure it's an array of valid providers
const validProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare'];
const validProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare', 'flyio'];
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
if (isOvhEnabled()) {
validProviders.push('ovh');
}
Expand Down Expand Up @@ -93,7 +93,7 @@ export async function POST(request: NextRequest) {
const { providers, action = 'set', provider } = body;

// Validate input
const validProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare'];
const validProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare', 'flyio'];
if (isOvhEnabled()) {
validProviders.push('ovh');
}
Expand Down Expand Up @@ -181,7 +181,7 @@ export async function POST(request: NextRequest) {
}

// Also track unselected providers for smart auto-select
const allProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare'];
const allProviders = ['gcp', 'azure', 'aws', 'scaleway', 'tailscale', 'grafana', 'datadog', 'cloudbees', 'newrelic', 'cloudflare', 'flyio'];
if (isOvhEnabled()) {
allProviders.push('ovh');
}
Expand Down
13 changes: 13 additions & 0 deletions client/src/app/api/proxy/flyio/[...path]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { NextRequest } from 'next/server';
import { forwardRequest } from '@/lib/backend-proxy';

async function handler(
request: NextRequest,
{ params }: { params: Promise<{ path: string[] }> },
) {
const { path } = await params;
const backendPath = '/flyio_api/flyio/' + path.join('/');
return forwardRequest(request, request.method, backendPath, 'flyio');
}

export { handler as GET, handler as POST, handler as DELETE };
Loading
Loading