Skip to content

Commit 665294f

Browse files
committed
Fix the default url for the dashboard overlay image
1 parent 9e24518 commit 665294f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/app/src/app/pages/Dashboard/Content/DragLayer/SelectedSandboxItems/AnimatedSandboxItem.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ type Props = {
1818
selectedSandboxes: Array<string>,
1919
};
2020

21-
const BASE_IMAGE_LOCATION =
22-
'https://s3.eu-west-1.amazonaws.com/prod.imager.images/';
23-
2421
export default class AnimatedSandboxItem extends React.Component<Props> {
2522
state = { render: true };
2623
componentWillMount() {
@@ -79,7 +76,7 @@ export default class AnimatedSandboxItem extends React.Component<Props> {
7976
<SandboxImageContainer>
8077
<SandboxImage
8178
style={{
82-
backgroundImage: `url(${`${BASE_IMAGE_LOCATION}${id}.png`})`, // A hack we do just for performance
79+
backgroundImage: `url(${`https://codesandbox.io/api/v1/sandboxes/${id}/screenshot.png`})`,
8380
}}
8481
/>
8582
</SandboxImageContainer>

0 commit comments

Comments
 (0)