Skip to content

Conversation

@Aslemammad
Copy link
Collaborator

@Aslemammad Aslemammad commented May 1, 2023

The Proxy Memoize website. Built with Astro, unocss and mostly vanilla javascript.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 1, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit de68e15:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
React Configuration
React Typescript Configuration

@Aslemammad
Copy link
Collaborator Author

@dai-shi Is the CI enabled for new workflows, we'd like to add the github pages.

@dai-shi
Copy link
Owner

dai-shi commented May 1, 2023

@dai-shi Is the CI enabled for new workflows, we'd like to add the github pages.

CI is enabled. You mean another workflow for github pages?

btw, if we go with github pages, we can apply for proxy-memoize.js.org.

@Aslemammad
Copy link
Collaborator Author

CI is enabled. You mean another workflow for github pages?

Yes

btw, if we go with github pages, we can apply for proxy-memoize.js.org.

That'd be good actually, but how about the github one? As far as I know they used to give free domains for github pages.

@dai-shi
Copy link
Owner

dai-shi commented May 1, 2023

Can you check the workflow file? Doesn't seem to work?

As far as I know they used to give free domains for github pages.

I didn't know about it. Never used before.

@Aslemammad
Copy link
Collaborator Author

I didn't know about it. Never used before.

Let's use it and see, we'll let you know.

Can you check the workflow file? Doesn't seem to work?

@Sajad-Sharhani

export default defineConfig({
// setup for github pages
site: 'https://pheno-agency.github.io',
base: '/proxy-memoize',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sajad-Sharhani I think the base should be /website, it's the directory that the site lives in. And please add the github workflow that astro recommends.

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Morteza-Mazrae I guess you need to remove the whole head here cause we already have it in the layout.

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Morteza-Mazrae also here

@@ -16,6 +17,9 @@ const docs = await Astro.glob('../../../docs/**/*.md');
<title>Proxy Memoize</title>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Morteza-Mazrae move these stuff to the layout (the head section, they all should be in one place)

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jawad-sawari this head thing should be removed, we don't need them, it's not logical.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Morteza-Mazrae I don't think in astro components we bring and

only the elements we need, in case of this file, the

only we need.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aslemammad I removed the whole extra head tags

@Aslemammad Aslemammad marked this pull request as ready for review June 4, 2023 13:01
@Aslemammad
Copy link
Collaborator Author

Hey @dai-shi we've been able to finish the website, now you can take a look and see! Let us know, it's been a fun experience.

@Aslemammad
Copy link
Collaborator Author

Aslemammad commented Jun 4, 2023

https://pheno-agency.github.io/proxy-memoize/

Here's the lighthouse score:

image

We've been able to keep most of the site static and keep some level of interactivity at the same time so we can achieve such a lighthouse result. Only one component is written in react and all of the rest are in astro (simple html with some script tags)

Copy link
Owner

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work!!!
Some comments added. I would like to see it deployed on GitHub pages?

# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [feat/website]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work now in this branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but since it's a fork, it pushes in our repo, when merged, it should be changed to main. You can see the link here for instance https://pheno-agency.github.io/proxy-memoize/

Copy link
Owner

@dai-shi dai-shi Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, okay, let's change it to main in this PR and we will see.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, cc @Sajad-Sharhani

.pnpm-debug.log Outdated
@@ -0,0 +1,23 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this file.

@@ -0,0 +1,2 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this file.

@dai-shi
Copy link
Owner

dai-shi commented Jun 6, 2023

Can you please check the CI error?

Copy link
Owner

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your wonderful work! Let's merge.

@dai-shi dai-shi merged commit 2ddd4a6 into dai-shi:main Jun 7, 2023
@Aslemammad Aslemammad deleted the feat/website branch June 7, 2023 06:57
@dai-shi
Copy link
Owner

dai-shi commented Jun 7, 2023

Hi, I'm trying to deploy it as proxy-memoize.js.org, but having a trouble.
js-org/js.org#8294

I'm not sure how it's caused, but if you guys know something, it's helpful.

@Aslemammad
Copy link
Collaborator Author

As I see it's an issue with github pages and not proxy memoize, am I right?

@Sajad-Sharhani
Copy link
Contributor

Can u first deploy it on github pages subdomain?
To understand where is the problem exactly.

@dai-shi
Copy link
Owner

dai-shi commented Jun 8, 2023

Can u first deploy it on github pages subdomain?

Yes, it was perfectly fine!

As I see it's an issue with github pages and not proxy memoize, am I right?

Yeah, seems like so...

@Aslemammad
Copy link
Collaborator Author

Aslemammad commented Jun 8, 2023

Yeah, seems like so...

I think you'd be able to issue a ticket to the github support so they know the issue (as others also had it), otherwise, I guess we need to go the plain github pages way or buy our own domain! or move things to vercel (which takes time, since we need to change the assets base from /proxy-memoize/ to / in astro)

@dai-shi
Copy link
Owner

dai-shi commented Jun 8, 2023

fwiw, I never had such an issue with gh-pages branch.
for example this one:
https://github.com/dai-shi/remote-faces/blob/0ffe195510db6803540da8bd92196f4f6211c26b/.github/workflows/cd.yml#L44
(but I haven't deployed it recently.)

@Aslemammad
Copy link
Collaborator Author

maybe it's because of the CNAME file?

@dai-shi
Copy link
Owner

dai-shi commented Jun 10, 2023

The custom domain issue is resolved, but now I face the base path issue...
Looking at https://docs.astro.build/en/reference/configuration-reference/#base, I hope I didn't make any mistakes.

@Aslemammad
Copy link
Collaborator Author

@Sajad-Sharhani Hey Sajad, Daishi has been able to fix the custom domain issue, can you change the assets paths and fix the issue?

Here's the new url https://proxy-memoize.js.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants