We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7149e commit e2f60feCopy full SHA for e2f60fe
api/oembed.js
@@ -7,9 +7,15 @@ export default function handler(request, response) {
7
8
if (query.url) {
9
10
+ let url = 'https://codeit.codes';
11
+
12
+ if (query.url.startsWith('https://dev.cde.run/')) {
13
+ url = 'https://dev.codeit.codes';
14
+ }
15
16
html = `
17
<oembed>
- <html><iframe src="https://codeit.codes/api/link?url=`+ query.url +`&embed=true" width="700" height="480"></html>
18
+ <html><iframe src="`+ url +`/api/link?url=`+ query.url +`&embed=true" width="700" height="480"></html>
19
<width>700</width>
20
<height>480</height>
21
</oembed>
0 commit comments