Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change tinysite to tiny #145

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 0 additions & 3 deletions .env.production

This file was deleted.

3 changes: 0 additions & 3 deletions .env.staging

This file was deleted.

2 changes: 1 addition & 1 deletion __tests__/components/Dashhboard/UrlListItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('UrlListItem', () => {
);
const copyButton = screen.getAllByTestId('copy-button')[0];
fireEvent.click(copyButton);
expect(mockWriteText).toHaveBeenCalledWith(`https://staging-tinysite.realdevsquad.com/${url.shortUrl}`);
expect(mockWriteText).toHaveBeenCalledWith(`https://staging-tiny.realdevsquad.com/${url.shortUrl}`);
});

test('delete button works', async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/constants/url.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'https://staging-tinysite-api.realdevsquad.com/v1';
export const TINY_SITE = process.env.NEXT_PUBLIC_TINY_SITE || 'https://staging-tinysite.realdevsquad.com';
const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'https://services.realdevsquad.com/staging-tiny/v1';
export const TINY_SITE = process.env.NEXT_PUBLIC_TINY_SITE || 'https://staging-tiny.realdevsquad.com';

export const TINY_API_URL = API_BASE_URL;
export const TINY_API_GOOGLE_LOGIN = `${API_BASE_URL}/auth/google/login`;
Expand Down
Loading