mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Make iframe previewDomain configurable
This commit is contained in:
9 files changed
+61
-22
No files matched your search
@@ -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 }
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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 }
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user