Make iframe previewDomain configurable

This commit is contained in:
Alex Gleason committed 2025-10-08 15:01:40 -05:00
1 parent b9d65e39b1
commit 45b0ae836a
9 files changed
+61 -22

No files matched your search

+2 -2
View File
@@ -37,6 +37,7 @@ function createWrapper(corsProxy: string) {
deployServer: 'test.com',
esmUrl: 'https://esm.test',
corsProxy,
previewDomain: 'local-test.dev',
};
return createElement(
@@ -44,8 +45,7 @@ function createWrapper(corsProxy: string) {
null,
createElement(
AppProvider,
{ storageKey: 'test-app-config', defaultConfig },
children
{ storageKey: 'test-app-config', defaultConfig, children }
)
);
};
+2 -2
View File
@@ -18,6 +18,7 @@ function Wrapper({ children }: { children: React.ReactNode }) {
deployServer: 'test.com',
esmUrl: 'https://esm.test',
corsProxy: 'https://proxy.shakespeare.diy/?url={href}',
previewDomain: 'local-test.dev',
};
return createElement(
@@ -25,8 +26,7 @@ function Wrapper({ children }: { children: React.ReactNode }) {
null,
createElement(
AppProvider,
{ storageKey: 'test-app-config', defaultConfig },
children
{ storageKey: 'test-app-config', defaultConfig, children }
)
);
}